Permission Details

Create Social Platforms

Social Platforms Create
Edit
Description

Can add new platforms

Permission Details
Resource

Social Platforms

System resource being protected
Action

Create

Operation that can be performed
Internal Name

social_platforms.create

Used in code and API

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

Permission Summary

Internal Name:
social_platforms.create
Display Name:
Create Social Platforms
Resource:
Social Platforms
Action:
Create
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

Quick Actions

Edit Permission