Admin Notifications

4 permissions in this category

admin.notifications.create

Create new notifications

ADMIN_NOTIFICATIONS_CREATE

admin.notifications.delete

Delete notifications

ADMIN_NOTIFICATIONS_DELETE

admin.notifications.edit

Edit existing notifications

ADMIN_NOTIFICATIONS_EDIT

admin.notifications.view

View notifications

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

Using Permission Constants

use App\Permissions;

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