public function hasAccess($module, $function, User $user = null)
    {
        // Full access if sudo nesting level is set by sudo method
        if ($this->sudoNestingLevel > 0) {
            return true;
        }

        return $this->repository->hasAccess($module, $function, $user);
    }