コード例 #1
0
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
コード例 #2
0
ファイル: models.py プロジェクト: adityaathalye/zine
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
コード例 #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)
コード例 #4
0
ファイル: models.py プロジェクト: adityaathalye/zine
 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)