Feature branch PR for Spec 114. This branch contains the merged agent session work (see merge commit on branch). Tests - `vendor/bin/sail artisan test --compact tests/Feature/System/Spec114/` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #139
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Support\Auth;
|
|
|
|
/**
|
|
* Platform Capability Registry
|
|
*
|
|
* These capabilities are used for platform operators authenticated via the
|
|
* `platform` guard (System panel).
|
|
*/
|
|
class PlatformCapabilities
|
|
{
|
|
public const ACCESS_SYSTEM_PANEL = 'platform.access_system_panel';
|
|
|
|
public const USE_BREAK_GLASS = 'platform.use_break_glass';
|
|
|
|
public const CONSOLE_VIEW = 'platform.console.view';
|
|
|
|
public const DIRECTORY_VIEW = 'platform.directory.view';
|
|
|
|
public const OPERATIONS_VIEW = 'platform.operations.view';
|
|
|
|
public const OPERATIONS_MANAGE = 'platform.operations.manage';
|
|
|
|
public const OPS_VIEW = 'platform.ops.view';
|
|
|
|
public const RUNBOOKS_VIEW = 'platform.runbooks.view';
|
|
|
|
public const RUNBOOKS_RUN = 'platform.runbooks.run';
|
|
|
|
public const RUNBOOKS_FINDINGS_LIFECYCLE_BACKFILL = 'platform.runbooks.findings.lifecycle_backfill';
|
|
|
|
/**
|
|
* @return array<string>
|
|
*/
|
|
public static function all(): array
|
|
{
|
|
$reflection = new \ReflectionClass(self::class);
|
|
|
|
return array_values($reflection->getConstants());
|
|
}
|
|
}
|