1
0
mirror of git://f0xx.org/ac/ac-platform-php synced 2026-07-29 04:18:41 +03:00

Add media_pipelines RBAC privilege sets for experimental restream UI.

Grants media_pipelines_view and media_pipelines_operate for lab developer
access alongside global admin gating.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-11 15:27:00 +02:00
parent 08fb2db96e
commit 23b352ff27

View File

@@ -30,6 +30,8 @@ final class Rbac {
public const PRIVILEGE_SET_REMOTE_ACCESS_ADMIN = 'remote_access_admin';
public const PRIVILEGE_SET_SHORT_LINKS_VIEWER = 'short_links_viewer';
public const PRIVILEGE_SET_SHORT_LINKS_USER = 'short_links_user';
public const PRIVILEGE_SET_MEDIA_PIPELINES_VIEWER = 'media_pipelines_viewer';
public const PRIVILEGE_SET_MEDIA_PIPELINES_USER = 'media_pipelines_user';
/** @var array<string, list<string>> */
public const PRIVILEGE_SETS = [
@@ -49,6 +51,13 @@ final class Rbac {
'short_links_view',
'short_links_operate',
],
self::PRIVILEGE_SET_MEDIA_PIPELINES_VIEWER => [
'media_pipelines_view',
],
self::PRIVILEGE_SET_MEDIA_PIPELINES_USER => [
'media_pipelines_view',
'media_pipelines_operate',
],
];
private const COMPANY_ROLE_ACTIONS = [