<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _perform_basic_permission_check(self, forum, user, permission):
 """ 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 """

        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