<?php

/**
 * Set the standard workspace
 *
 * @param integer $id - Workspace-ID
 */

QUI::$Ajax->registerFunction(
    'ajax_desktop_workspace_setStandard',
    function ($id) {
        QUI\Workspace\Manager::setStandardWorkspace(
            QUI::getUserBySession(),
            $id
        );
    },
    ['id'],
    'Permission::checkUser'
);
