Permission/AbstractPermissionManager.php
private function getMasterPermissions(array $permissions, $subject, $field)
    {
        $master = $this->getMaster($subject);

        if (null !== $subject && null !== $master && $subject !== $master) {
            if (null !== $field) {
                $permissions = $this->buildMasterFieldPermissions($subject, $permissions);
            }

            $subject = $master;
            $field = null;
        }

        return [$permissions, $subject, $field];
    }
private function getMasterPermissions(array $permissions, $subject, $field)
    {
        $master = $this->getMaster($subject);

        if (null !== $subject && null !== $master && $subject !== $master) {
            if (null !== $field) {
                $permissions = $this->buildMasterFieldPermissions($subject, $permissions);
            }

            $subject = $master;
            $field = null;
        }

        return [$permissions, $subject, $field];
    }
private function getMasterPermissions ( array $ permissions , $ subject , $ field ) { $ master = $ this -> getMaster ( $ subject ) ; if ( null !== $ subject && null !== $ master && $ subject !== $ master ) { if ( null !== $ field ) { $ permissions = $ this -> buildMasterFieldPermissions ( $ subject , $ permissions ) ; } $ subject = $ master ; $ field = null ; } return [ $ permissions , $ subject , $ field ] ; }
Get the master subject and permissions.

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

@return array
Get the master subject and permissions .