allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject allura git commit: fixup! fixup! [#4841] Prevents anonymous users from editing other anon comments, including their own.
Date Wed, 21 Feb 2018 17:12:36 GMT
Repository: allura
Updated Branches:
  refs/heads/kt/4841 8b2b4f07c -> 090e5c3c7


fixup! fixup! [#4841] Prevents anonymous users from editing other anon comments, including
their own.


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/090e5c3c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/090e5c3c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/090e5c3c

Branch: refs/heads/kt/4841
Commit: 090e5c3c7ba4bc175a03142e0ff4e80bc6873c1a
Parents: 8b2b4f0
Author: Kenton Taylor <ktaylor@slashdotmedia.com>
Authored: Wed Feb 21 12:12:27 2018 -0500
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Wed Feb 21 12:12:27 2018 -0500

----------------------------------------------------------------------
 Allura/allura/model/discuss.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/090e5c3c/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 4e3d51b..32cf68e 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -726,7 +726,7 @@ class Post(Message, VersionedArtifact, ActivityObject):
         author = self.author()
         author_role = ProjectRole.by_user(
             author, project=self.project, upsert=True)
-        if True or not author.is_anonymous():
+        if not author.is_anonymous():
             security.simple_grant(
                 self.acl, author_role._id, 'moderate')
         self.commit()


Mime
View raw message