Permission/PermissionManager.php
private function isConfigGranted(RoleSecurityIdentity $sid, $operation, $subject = null, $class = null)
    {
        $granted = true;

        if (null !== $class && $this->hasConfig($class)) {
            $config = $this->getConfig($class);

            if (null !== $config->getMaster()) {
                $realOperation = $config->getMappingPermission($operation);
                $granted = $this->isGranted([$sid], [$realOperation], $subject);
            }
        }

        return $granted;
    }
private function isConfigGranted(RoleSecurityIdentity $sid, $operation, $subject = null, $class = null)
    {
        $granted = true;

        if (null !== $class && $this->hasConfig($class)) {
            $config = $this->getConfig($class);

            if (null !== $config->getMaster()) {
                $realOperation = $config->getMappingPermission($operation);
                $granted = $this->isGranted([$sid], [$realOperation], $subject);
            }
        }

        return $granted;
    }
private function isConfigGranted ( RoleSecurityIdentity $ sid , $ operation , $ subject = null , $ class = null ) { $ granted = true ; if ( null !== $ class && $ this -> hasConfig ( $ class ) ) { $ config = $ this -> getConfig ( $ class ) ; if ( null !== $ config -> getMaster ( ) ) { $ realOperation = $ config -> getMappingPermission ( $ operation ) ; $ granted = $ this -> isGranted ( [ $ sid ] , [ $ realOperation ] , $ subject ) ; } } return $ granted ; }
Check if the config permission is granted.

@param RoleSecurityIdentity                                  $sid       The role security identity
@param string                                                $operation The operation
@param null|FieldVote|object|string|SubjectIdentityInterface $subject   The object or class name or field vote
@param null|string                                           $class     The class name

@return bool
Check if the config permission is granted .