src/Sulu/Component/Security/Authorization/AccessControl/AccessControlManager.php
private function cumulatePermissions(array $userPermission, array $permissions)
    {
        return $this->mapPermissions($userPermission, $permissions, function($permission1, $permission2) {
            return $permission1 || $permission2;
        });
    }
private function cumulatePermissions(array $userPermission, array $permissions)
    {
        return $this->mapPermissions($userPermission, $permissions, function($permission1, $permission2) {
            return $permission1 || $permission2;
        });
    }
private function cumulatePermissions ( array $ userPermission , array $ permissions ) { return $ this -> mapPermissions ( $ userPermission , $ permissions , function ( $ permission1 , $ permission2 ) { return $ permission1 || $ permission2 ; } ) ; }
Merges all the true values for the given permission arrays.

@param array $permissions The array of the additional permissions
@param array $userPermission The array of the currently changing permissions

@return mixed
Merges all the true values for the given permission arrays .