summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2001-08-22 15:17:57 +0000
committerJens Vagelpohl <jens@netz.ooo>2001-08-22 15:17:57 +0000
commit4c328964b320e54f79fcac8949ef0a46d852f3a8 (patch)
tree84afdf1b568da7a4a4dae433ce671c7bdb5a12c6
parent44ef25d4664044fb93186ff7bd35b70ac95a8140 (diff)
downloadLDAPUserManager-4c328964b320e54f79fcac8949ef0a46d852f3a8.zip
LDAPUserManager-4c328964b320e54f79fcac8949ef0a46d852f3a8.tar.gz
- added explicit security declarations for ZMI-screens
- avoid "ambiguous name" errors on startup in 2.4 by using "_setName"
-rw-r--r--LDAPUserManager.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/LDAPUserManager.py b/LDAPUserManager.py
index c30709b..3449240 100644
--- a/LDAPUserManager.py
+++ b/LDAPUserManager.py
@@ -54,11 +54,20 @@ class LDAPUserManager( SimpleItem, LDAPShared ):
+ SimpleItem.manage_options
)
+ security.declareProtected( 'View management screens', 'manage_user' )
+ security.declareProtected( 'View management screens', 'manage_groups' )
+ security.declareProtected( 'View management screens', 'manage_properties' )
+ security.declareProtected( 'View management screens', 'manage_ldapschema' )
+ security.declareProtected( 'View management screens', 'manage_main' )
+ security.declareProtected( 'View management screens', 'manage_properties' )
+ security.declareProtected( 'View management screens', 'manage' )
manage_user = DTMLFile('dtml/users', globals())
manage_groups = DTMLFile('dtml/groups', globals())
manage_properties = DTMLFile('dtml/properties', globals())
manage_ldapschema = DTMLFile('dtml/ldapschema', globals())
manage = manage_main = manage_properties
+ manage_main._setName( 'manage_main' )
+ manage_properties._setName( 'manage_properties' )
def __init__(self, id, title, LDAP_server, users_base,