HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/676643/root/usr/local/CyberCP/public/imunifyav/plib/library/ImunifyPermissions.php
<?php

namespace Imunify360;

class ImunifyPermissions
{
    const PERMISSION_END_USER_IMUNIFY_ON = 'imunify_end_user_on';
    const PERMISSION_IMUNIFY_SCAN_ALLOWED = 'imunify_scanning_allowed';
    const PERMISSION_IMUNIFY_CLEANUP_ALLOWED = 'imunify_cleanup_allowed';

    public static function isAvailableForEndUser(\pm_Client $client, array $domains): bool {
        return ImunifyHelper::checkPermission(self::PERMISSION_END_USER_IMUNIFY_ON, $client, $domains);
    }

    public static function scanningAllowed(\pm_Client $client, array $domains): bool {
        return ImunifyHelper::checkPermission(self::PERMISSION_IMUNIFY_SCAN_ALLOWED, $client, $domains);
    }

    public static function cleanupAllowed(\pm_Client $client, array $domains): bool {
        return ImunifyHelper::checkPermission(self::PERMISSION_IMUNIFY_CLEANUP_ALLOWED, $client, $domains);
    }
}