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);
    }
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);
    }
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 ) ; }
Checks if user has access to specified module and function.

@param string $module The module, aka controller identifier to check permissions on
@param string $function The function, aka the controller action to check permissions on
@param \eZ\Publish\API\Repository\Values\User\User $user

@return bool|array if limitations are on this function an array of limitations is returned
Checks if user has access to specified module and function .