Exemplo n.º 1
0
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
Exemplo n.º 2
0
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
Exemplo n.º 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)
Exemplo n.º 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)