[Zope-CMF] getPortalRoles: should 'Owner' role be included?
Joseph Wayne Norton
norton@arseed.co.jp
Thu, 09 Aug 2001 12:12:58 +0900
Hello.
I would like to know if there is any specific reason why 'Owner' is
not included (like 'Manager') in the list of roles returned by
getPortalRoles.
thanks,
- joe
security.declareProtected(ManagePortal, 'getPortalRoles')
def getPortalRoles(self):
"""
Return all local roles defined by the portal itself,
which means roles that are useful and understood
by the portal object
"""
parent = self.aq_inner.aq_parent
roles = list(parent.__ac_roles__)
# This is *not* a local role in the portal but used by it
roles.append('Manager')
return roles