src/Sulu/Component/Content/Document/Subscriber/SecuritySubscriber.php
private function getAllowedPermissions($permissions)
    {
        $allowedPermissions = [];
        foreach ($permissions as $permission => $allowed) {
            if ($allowed) {
                $allowedPermissions[] = $permission;
            }
        }

        return $allowedPermissions;
    }
private function getAllowedPermissions($permissions)
    {
        $allowedPermissions = [];
        foreach ($permissions as $permission => $allowed) {
            if ($allowed) {
                $allowedPermissions[] = $permission;
            }
        }

        return $allowedPermissions;
    }
private function getAllowedPermissions ( $ permissions ) { $ allowedPermissions = [ ] ; foreach ( $ permissions as $ permission => $ allowed ) { if ( $ allowed ) { $ allowedPermissions [ ] = $ permission ; } } return $ allowedPermissions ; }
Extracts the keys of the allowed permissions into an own array.

@param $permissions

@return array
Extracts the keys of the allowed permissions into an own array .