<?php
require_once __DIR__ . '/../../config/session.php';
require_once __DIR__ . '/../../config/db.php';
require_once __DIR__ . '/../../config/response.php';
require_login();
$perms = $pdo->query("SELECT * FROM permissions ORDER BY module, action")->fetchAll();
jsonResponse(['success' => true, 'data' => $perms]);
