mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Improved logic for handling permissions on API routes.
Still only partially implemented, however this method will allow the inclusion of data that is granted with servers (such as viewing more about the node, node location, allocations, etc) while still limiting someone from doing `?include=node.servers` and listing all servers when they don’t have list-servers as a permission.
This commit is contained in:
@@ -28,7 +28,7 @@ return [
|
||||
*/
|
||||
'storage' => [
|
||||
'enabled' => true,
|
||||
'driver' => 'file', // redis, file, pdo
|
||||
'driver' => env('DEBUGBAR_DRIVER', 'file'), // redis, file, pdo
|
||||
'path' => storage_path() . '/debugbar', // For file driver
|
||||
'connection' => null, // Leave null for default connection (Redis/PDO)
|
||||
],
|
||||
@@ -125,7 +125,7 @@ return [
|
||||
'enabled' => false,
|
||||
'types' => ['SELECT', 'INSERT', 'UPDATE', 'DELETE'], // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
|
||||
],
|
||||
'hints' => true, // Show hints for common mistakes
|
||||
'hints' => false, // Show hints for common mistakes
|
||||
],
|
||||
'mail' => [
|
||||
'full_log' => false,
|
||||
|
||||
Reference in New Issue
Block a user