Update: 2026-05-04 20:03:11
This commit is contained in:
@@ -10,7 +10,7 @@ use App\Middleware\AuthMiddleware;
|
||||
|
||||
// 1. Auth Check
|
||||
$decoded = AuthMiddleware::check();
|
||||
if (!in_array($decoded['role'], [ 'super_admin'])) {
|
||||
if (!in_array($decoded['role'], ['super_admin', 'admin'])) {
|
||||
json_error('Unauthorized to modify JoFotara settings', 403);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user