Permission Details

Create Posts

Posts Create
Edit
Description

Can create new posts

Permission Details
Resource

Posts

System resource being protected
Action

Create

Operation that can be performed
Internal Name

posts.create

Used in code and API

Assigned to Roles (5)

100
Super Administrator
Level 100 access
Granted Sep 27, 2025
80
Administrator
Level 80 access
Granted Sep 27, 2025
60
Manager
Level 60 access
Granted Sep 27, 2025
40
Editor
Level 40 access
Granted Sep 27, 2025
20
Contributor
Level 20 access
Granted Sep 27, 2025

Usage in Code

Check Permission in Controller
// Check if current user has this permission
if (!$this->hasPermission('posts', 'create')) {
    return $this->respond(['error' => 'Access denied'], 403);
}
Check Permission in View
<?php if (hasPermission('posts', 'create')): ?>
    <button class="btn btn-primary">Create</button>
<?php endif; ?>
API Endpoint Protection
// In routes or middleware
$routes->post('posts', 'Controller::create', [
    'permission' => 'posts.create'
]);

Permission Summary

Internal Name:
posts.create
Display Name:
Create Posts
Resource:
Posts
Action:
Create
Created:
Sep 27, 2025 12:47 AM
Last Updated:
Sep 27, 2025 12:47 AM

Assignment Statistics

Assigned Roles: 5
Total Users: 0
Status: In Use

Quick Actions

Edit Permission