Edit Roles
Roles
Edit
Description
Can edit existing roles
Permission Details
Assigned to Roles (1)
100
Super Administrator
Level 100 access
Granted Sep 27, 2025
Usage in Code
Check Permission in Controller
// Check if current user has this permission
if (!$this->hasPermission('roles', 'edit')) {
return $this->respond(['error' => 'Access denied'], 403);
}
Check Permission in View
<?php if (hasPermission('roles', 'edit')): ?>
<button class="btn btn-primary">Edit</button>
<?php endif; ?>
API Endpoint Protection
// In routes or middleware
$routes->post('roles', 'Controller::edit', [
'permission' => 'roles.edit'
]);
Permission Summary
Internal Name:
roles.edit
Display Name:
Edit Roles
Resource:
Roles
Action:
Edit
Created:
Sep 27, 2025 12:47 AM
Last Updated:
Sep 27, 2025 12:47 AM
Assignment Statistics
Assigned Roles:
1
Total Users:
0
Status:
In Use