Some checks failed
Main Confidence / confidence (push) Failing after 1m1s
## Summary - integrate the current `platform-dev` branch into `dev` - bring the latest platform work from the integration branch into the main development branch - include the recent findings lifecycle backfill removal slice together with the already accumulated `platform-dev` changes ## Scope - source branch: `platform-dev` - target branch: `dev` - branch role: integration PR, not a single-feature PR ## Validation - branch state reviewed before PR creation - `platform-dev` is ahead of `dev` with the expected integration history - this PR intentionally carries the accumulated `platform-dev` commits into `dev` ## Notes - this is the correct merge direction for the current workflow, where feature branches land in `platform-dev` first and `platform-dev` is then merged into `dev` - after merging, `platform-dev` can be recreated fresh from `dev` as usual Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #295
45 lines
1.1 KiB
PHP
45 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 COMMERCIAL_LIFECYCLE_MANAGE = 'platform.commercial_lifecycle.manage';
|
|
|
|
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 OPS_CONTROLS_MANAGE = 'platform.ops.controls.manage';
|
|
|
|
/**
|
|
* @return array<string>
|
|
*/
|
|
public static function all(): array
|
|
{
|
|
$reflection = new \ReflectionClass(self::class);
|
|
|
|
return array_values($reflection->getConstants());
|
|
}
|
|
}
|