17 lines
444 B
PHP
17 lines
444 B
PHP
<?php
|
|
require_once __DIR__ . '/../../db/config.php';
|
|
|
|
$pdo = db();
|
|
|
|
try {
|
|
$stmt = $pdo->prepare("UPDATE permissions SET description = ? WHERE slug = ?");
|
|
$stmt->execute([
|
|
'Access to all reports, including Shipper and Truck Owner statements.',
|
|
'view_reports'
|
|
]);
|
|
|
|
echo "Updated 'view_reports' permission description.";
|
|
} catch (PDOException $e) {
|
|
echo "Error updating permission: " . $e->getMessage();
|
|
}
|