docs: def is_admin(self):
          """
              Check that the user has a role with the code 'admin'
          """
          for ur in self.roleusers:
              if ur.role.code == 'admin':
                  return True
  
          return False