src/Sulu/Bundle/SecurityBundle/Controller/RoleController.php
private function updatePermission(Permission $permission, $permissionData)
    {
        $permission->setContext($permissionData['context']);

        $permission->setPermissions(
            $this->get('sulu_security.mask_converter')
                ->convertPermissionsToNumber($permissionData['permissions'])
        );

        return true;
    }
private function updatePermission(Permission $permission, $permissionData)
    {
        $permission->setContext($permissionData['context']);

        $permission->setPermissions(
            $this->get('sulu_security.mask_converter')
                ->convertPermissionsToNumber($permissionData['permissions'])
        );

        return true;
    }
private function updatePermission ( Permission $ permission , $ permissionData ) { $ permission -> setContext ( $ permissionData [ 'context' ] ) ; $ permission -> setPermissions ( $ this -> get ( 'sulu_security.mask_converter' ) -> convertPermissionsToNumber ( $ permissionData [ 'permissions' ] ) ) ; return true ; }
Updates an already existing permission.

@param Permission $permission
@param $permissionData

@return bool
Updates an already existing permission .