From 0bc3ef8c4b868e6db4be55c761f55bfbb8707db5 Mon Sep 17 00:00:00 2001 From: Mohamadou Mbengue <mmbengue@gmail.com> Date: Mon, 21 Jun 2010 22:51:14 +0000 Subject: [PATCH] 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 --- bt5/erp5_egov/ExtensionTemplateItem/EGovSecurity.py | 3 ++- bt5/erp5_egov/bt/change_log | 3 +++ bt5/erp5_egov/bt/revision | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_egov/ExtensionTemplateItem/EGovSecurity.py b/bt5/erp5_egov/ExtensionTemplateItem/EGovSecurity.py index afa507cdd8..7b210db1f1 100644 --- a/bt5/erp5_egov/ExtensionTemplateItem/EGovSecurity.py +++ b/bt5/erp5_egov/ExtensionTemplateItem/EGovSecurity.py @@ -155,9 +155,10 @@ def setPermissionsOnEGovModule(self, portal_type_object): # assume anonymous role can access and add if portal_type_object is not None: step_authentication = portal_type_object.getStepAuthentication() + step_subscription = portal_type_object.getStepSubscription() self.manage_acquiredPermissions(aquired_permission_list) 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) elif role != "Anonymous": self.manage_role(role_to_manage=role, permissions=permission_list) diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index 369186e8f6..b5d2418534 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,3 +1,6 @@ +2010-06-21 mohamadou +* update EgovSecurity to set security for Anonymous only if there is no authentification and no subscription + 2010-06-21 mohamadou * update generatePortalType to use good role category for role information definition * add publication_section category if procedure needs subscription diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 1683d1104a..b094da400f 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -563 \ No newline at end of file +568 \ No newline at end of file -- 2.30.9