예제 #1
0
파일: models.py 프로젝트: rockyburt/Rezine
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
예제 #2
0
파일: models.py 프로젝트: rockyburt/Rezine
 def has_privilege(self, privilege):
     return add_admin_privilege(privilege)(self.privileges)
예제 #3
0
파일: models.py 프로젝트: rockyburt/Rezine
 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 프로젝트: rockyburt/Rezine
 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)