Permission/AbstractPermissionManager.php
private function getRealPermissions(array $permissions, $subject = null, $field = null)
    {
        if (null !== $subject && $this->hasConfig($subject->getType())) {
            $config = $this->getConfig($subject->getType());

            if (null !== $field && $config->hasField($field)) {
                $config = $config->getField($field);
            }

            foreach ($permissions as $key => &$permission) {
                $permission = $config->getMappingPermission($permission);
            }
        }

        return $permissions;
    }
private function getRealPermissions(array $permissions, $subject = null, $field = null)
    {
        if (null !== $subject && $this->hasConfig($subject->getType())) {
            $config = $this->getConfig($subject->getType());

            if (null !== $field && $config->hasField($field)) {
                $config = $config->getField($field);
            }

            foreach ($permissions as $key => &$permission) {
                $permission = $config->getMappingPermission($permission);
            }
        }

        return $permissions;
    }
private function getRealPermissions ( array $ permissions , $ subject = null , $ field = null ) { if ( null !== $ subject && $ this -> hasConfig ( $ subject -> getType ( ) ) ) { $ config = $ this -> getConfig ( $ subject -> getType ( ) ) ; if ( null !== $ field && $ config -> hasField ( $ field ) ) { $ config = $ config -> getField ( $ field ) ; } foreach ( $ permissions as $ key => & $ permission ) { $ permission = $ config -> getMappingPermission ( $ permission ) ; } } return $ permissions ; }
Get the real permissions.

@param string[]                      $permissions The permissions
@param null|SubjectIdentityInterface $subject     The subject identity
@param null|string                   $field       The field name

@return string[]
Get the real permissions .