docs: def has_perm(self, perm, forum):
          """ Checks if the considered user has given permission for the passed forum. """
          if not self.user.is_anonymous and not self.user.is_active:
              # An inactive user cannot have permissions
              return False
          elif self.user and self.user.is_superuser:
              # The superuser have all permissions
              return True
          return perm in self.get_perms(forum)