You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/12/14 00:17:08 UTC

incubator-ponymail git commit: Oops, need to set up rights for child call

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master fd188dc4d -> 46dd782c9


Oops, need to set up rights for child call

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/46dd782c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/46dd782c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/46dd782c

Branch: refs/heads/master
Commit: 46dd782c910565e644130b4fa748ceb64dd2d601
Parents: fd188dc
Author: Sebb <se...@apache.org>
Authored: Wed Dec 14 00:17:00 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Wed Dec 14 00:17:00 2016 +0000

----------------------------------------------------------------------
 site/api/thread.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/46dd782c/site/api/thread.lua
----------------------------------------------------------------------
diff --git a/site/api/thread.lua b/site/api/thread.lua
index cd78ec7..91f0958 100644
--- a/site/api/thread.lua
+++ b/site/api/thread.lua
@@ -120,7 +120,8 @@ function handle(r)
         -- if private, can we access it?
         if doc.private then
             if account then
-                canAccess = utils.canAccessDoc(doc, aaa.rights(r, account))
+                rights = aaa.rights(r, account)
+                canAccess = utils.canAccessDoc(doc, rights)
             else
                 r:puts(JSON.encode{
                     error = "You must be logged in to view this email"