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: //usr/local/CyberCP/public/imunifyav/plib/hooks/Permissions.php
<?php

use \Imunify360\ImunifyLocale;
use \Imunify360\ImunifyPermissions;

class Modules_Imunify360_Permissions extends pm_Hook_Permissions
{
    public function getPermissions()
    {
        return [
            ImunifyPermissions::PERMISSION_END_USER_IMUNIFY_ON => [
                'default'     => true,
                'place'       => self::PLACE_MAIN,
                'name'        => ImunifyLocale::lmsg('permissions.imunify_end_user_on.name'),
                'description' => ImunifyLocale::lmsg('permissions.imunify_end_user_on.description'),
            ],
            ImunifyPermissions::PERMISSION_IMUNIFY_SCAN_ALLOWED => [
                'default'     => true,
                'place'       => self::PLACE_MAIN,
                'name'        => ImunifyLocale::lmsg('permissions.scanning_allowed.name'),
                'description' => ImunifyLocale::lmsg('permissions.scanning_allowed.description'),
                'master'      => ImunifyPermissions::PERMISSION_END_USER_IMUNIFY_ON,
            ],
            ImunifyPermissions::PERMISSION_IMUNIFY_CLEANUP_ALLOWED => [
                'default'     => true,
                'place'       => self::PLACE_MAIN,
                'name'        => ImunifyLocale::lmsg('permissions.cleanup_allowed.name'),
                'description' => ImunifyLocale::lmsg('permissions.cleanup_allowed.description'),
                'master'      => ImunifyPermissions::PERMISSION_END_USER_IMUNIFY_ON,
            ],
        ];
    }
}