Admin Tickets

5 permissions in this category

admin.tickets.create

Create support tickets

ADMIN_TICKETS_CREATE

admin.tickets.delete

Delete support tickets

ADMIN_TICKETS_DELETE

admin.tickets.edit

Edit support tickets

ADMIN_TICKETS_EDIT

admin.tickets.manage

Manage all aspects of support tickets

ADMIN_TICKETS_MANAGE

admin.tickets.view

View support tickets

ADMIN_TICKETS_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.tickets.create')) {
    // User has permission
}

Using Permission Constants

use App\Permissions;

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