Permission Details

Moderate Comments

Comments Moderate
Edit
Description

Can approve/reject comments

Permission Details
Resource

Comments

System resource being protected
Action

Moderate

Operation that can be performed
Internal Name

comments.moderate

Used in code and API

Assigned to Roles (3)

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

Usage in Code

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

Permission Summary

Internal Name:
comments.moderate
Display Name:
Moderate Comments
Resource:
Comments
Action:
Moderate
Created:
Sep 27, 2025 12:47 AM
Last Updated:
Sep 27, 2025 12:47 AM

Assignment Statistics

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

Quick Actions

Edit Permission