<?php

/**
 * Check license status
 *
 * @return array
 * @throws QUI\Exception
 */

use QUI\System\License;

QUI::getAjax()->registerFunction(
    'ajax_licenseKey_checkStatus',
    static function (): bool|array {
        try {
            return License::getStatus();
        } catch (\Exception $Exception) {
            QUI\System\Log::writeException($Exception);
            throw $Exception;
        }
    },
    [],
    'Permission::checkAdminUser'
);
