public function __construct(private readonly Connection
$connection) { } /**
* @internal only for use by the app-system
*/
public function updatePrivileges(?Permissions
$permissions, string
$roleId): void
{ $privileges =
$permissions ?
$permissions->
asParsedPrivileges() :
[];
$this->
addPrivileges($privileges,
$roleId);
} /**
* @internal only for use by the app-system
*/
public function removeRole(string
$roleId): void
{ $this->connection->
executeStatement( 'DELETE FROM `acl_role` WHERE id = :id',
[ 'id' => Uuid::
fromHexToBytes($roleId),
]