code: def _perform_basic_permission_check(self, forum, user, permission):
          
          checker = self._get_checker(user)
  
          # The action is granted if...
          #     the user is the superuser
          #     the user has the permission to do so
          check = (user.is_superuser or checker.has_perm(permission, forum))
          return check
docs: Given a forum and a user, checks whether the latter has the passed permission.
  
          The workflow is:
  
              1. The permission is granted if the user is a superuser
              2. If not, a check is performed with the given permission