Commit 0bc3ef8c authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2010-06-21 mohamadou

* update EgovSecurity  to set security for Anonymous only if there is no authentification and no subscription

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 213a1031
...@@ -155,9 +155,10 @@ def setPermissionsOnEGovModule(self, portal_type_object): ...@@ -155,9 +155,10 @@ def setPermissionsOnEGovModule(self, portal_type_object):
# assume anonymous role can access and add # assume anonymous role can access and add
if portal_type_object is not None: if portal_type_object is not None:
step_authentication = portal_type_object.getStepAuthentication() step_authentication = portal_type_object.getStepAuthentication()
step_subscription = portal_type_object.getStepSubscription()
self.manage_acquiredPermissions(aquired_permission_list) self.manage_acquiredPermissions(aquired_permission_list)
for (role, permission_list) in role_permission_dict.items(): for (role, permission_list) in role_permission_dict.items():
if role == "Anonymous" and not step_authentication: if role == "Anonymous" and not step_authentication and not step_subscription:
self.manage_role(role_to_manage=role, permissions=permission_list) self.manage_role(role_to_manage=role, permissions=permission_list)
elif role != "Anonymous": elif role != "Anonymous":
self.manage_role(role_to_manage=role, permissions=permission_list) self.manage_role(role_to_manage=role, permissions=permission_list)
......
2010-06-21 mohamadou
* update EgovSecurity to set security for Anonymous only if there is no authentification and no subscription
2010-06-21 mohamadou 2010-06-21 mohamadou
* update generatePortalType to use good role category for role information definition * update generatePortalType to use good role category for role information definition
* add publication_section category if procedure needs subscription * add publication_section category if procedure needs subscription
......
563 568
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment