code: def load_user_rights(self, user):
          
          if user.username in self.admins:
              user.is_admin = True
          elif not hasattr(user, 'is_admin'):
              user.is_admin = False
docs: Sets permissions on user object