Example #1
0
 def has_role(self, role):
     return Authorise.has_role(role, self.role)
Example #2
0
 def has_role(self, role):
     return Authorise.has_role(role, self.role)
Example #3
0
 def is_super(self):
     return Authorise.has_role(app.config["ACCOUNT_SUPER_USER_ROLE"],
                               self.role)
Example #4
0
 def is_super(self):
     return Authorise.has_role(app.config["ACCOUNT_SUPER_USER_ROLE"], self.role)