Example #1
0
 def accessDecisionManager(self):
     """This AccessDecisionManager decides based on what ROLE_xxx the current user has."""
     adm = AffirmativeBased()
     adm.allow_if_all_abstain = False
     adm.access_decision_voters = []
     adm.access_decision_voters.append(RoleVoter()) 
     return adm
Example #2
0
 def accessDecisionManager(self):
     """This AccessDecisionManager decides based on what ROLE_xxx the current user has."""
     adm = AffirmativeBased()
     adm.allow_if_all_abstain = False
     adm.access_decision_voters = []
     adm.access_decision_voters.append(RoleVoter()) 
     return adm
Example #3
0
 def accessDecisionManager(self):
     adm = AffirmativeBased()
     adm.allow_if_all_abstain_decisions = False
     adm.access_decision_voters = []
     adm.access_decision_voters.append(self.vetRoleVoter())
     adm.access_decision_voters.append(self.customerRoleVoter())
     adm.access_decision_voters.append(self.ownerVoter())
     return adm
Example #4
0
 def accessDecisionManager(self):
     adm = AffirmativeBased()
     adm.allow_if_all_abstain_decisions = False
     adm.access_decision_voters = []
     adm.access_decision_voters.append(self.vetRoleVoter())
     adm.access_decision_voters.append(self.customerRoleVoter())
     adm.access_decision_voters.append(self.ownerVoter())
     return adm