changeset 1775:33590c9ffcd6

use ACL_RIGHTS_CONTENTS constant, don't hardcode the value
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Sep 2012 21:33:28 +0200
parents 99d28fce4d51
children 9890a2d41efe
files MoinMoin/storage/middleware/protecting.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/protecting.py	Wed Sep 05 10:13:42 2012 +0200
+++ b/MoinMoin/storage/middleware/protecting.py	Fri Sep 07 21:33:28 2012 +0200
@@ -18,6 +18,7 @@
 logging = log.getLogger(__name__)
 
 from MoinMoin.config import ACL, CREATE, READ, WRITE, DESTROY, ADMIN, \
+                            ACL_RIGHTS_CONTENTS, \
                             ALL_REVS, LATEST_REVS
 from MoinMoin.security import AccessControlList
 
@@ -39,7 +40,7 @@
         self.indexer = indexer
         self.user = user
         self.acl_mapping = acl_mapping
-        self.valid_rights = ['read', 'write', 'create', 'admin', 'destroy', ]
+        self.valid_rights = ACL_RIGHTS_CONTENTS
 
     def get_acls(self, itemname):
         for prefix, acls in self.acl_mapping: