ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Oops, need to set up rights for child call
Date Wed, 14 Dec 2016 00:17:08 GMT
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 <sebb@apache.org>
Authored: Wed Dec 14 00:17:00 2016 +0000
Committer: Sebb <sebb@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"


Mime
View raw message