Admin FeatherZeroTrust

4 permissions in this category

admin.featherzerotrust.configure

Configure FeatherZeroTrust settings

ADMIN_FEATHERZEROTRUST_CONFIGURE

admin.featherzerotrust.manage

Manage FeatherZeroTrust

ADMIN_FEATHERZEROTRUST_MANAGE

admin.featherzerotrust.scan

Run scans with FeatherZeroTrust

ADMIN_FEATHERZEROTRUST_SCAN

admin.featherzerotrust.view

View FeatherZeroTrust scanner

ADMIN_FEATHERZEROTRUST_VIEW

Usage in Code

How to check permissions in your code

PHP Backend

use App\Helpers\PermissionHelper;

// Check if user has permission
if (PermissionHelper::hasPermission($userUuid, 'admin.featherzerotrust.configure')) {
    // User has permission
}

Using Permission Constants

use App\Permissions;

// Use constant instead of string
if (PermissionHelper::hasPermission($userUuid, Permissions::ADMIN_FEATHERZEROTRUST_CONFIGURE)) {
    // User has permission
}