def CheckIfUserIsAdmin(self, token=None):
     user_managers.CheckUserForLabels(token.username, ["admin"],
                                      token=token)
Example #2
0
 def CheckIfUserIsAdmin(self, username):
     user_managers.CheckUserForLabels(username, ["admin"])