Example #1
0
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
Example #2
0
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
Example #3
0
 def has_privilege(self, privilege):
     """Check if the user has a given privilege.  If the user has the
     BLOG_ADMIN privilege he automatically has all the other privileges
     as well.
     """
     return add_admin_privilege(privilege)(self.privileges)
Example #4
0
 def has_privilege(self, privilege):
     """Check if the user has a given privilege.  If the user has the
     BLOG_ADMIN privilege he automatically has all the other privileges
     as well.
     """
     return add_admin_privilege(privilege)(self.privileges)