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