[ MediaManager::class => [ 'editClassLabel' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::READ ], 'editInstance' => [ TaoAssetRoles::ASSET_VIEWER => ActionAccessControl::READ, TaoAssetRoles::ASSET_PROPERTIES_EDITOR => ActionAccessControl::WRITE, ], 'isPreviewEnabled' => [ TaoAssetRoles::ASSET_VIEWER => ActionAccessControl::DENY, TaoAssetRoles::ASSET_PREVIEWER => ActionAccessControl::READ, ], ], taoItems_actions_ItemContent::class => [ 'viewAsset' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::DENY, TaoAssetRoles::ASSET_VIEWER => ActionAccessControl::READ, ], 'previewAsset' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::DENY, TaoAssetRoles::ASSET_PREVIEWER => ActionAccessControl::READ, ], 'downloadAsset' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::DENY, TaoAssetRoles::ASSET_EXPORTER => ActionAccessControl::READ, ], 'uploadAsset' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::DENY, TaoAssetRoles::ASSET_IMPORTER => ActionAccessControl::WRITE, ], 'deleteAsset' => [ TaoAssetRoles::ASSET_CLASS_NAVIGATOR => ActionAccessControl::DENY, TaoAssetRoles::ASSET_DELETER => ActionAccessControl::WRITE, ], ], MediaImport::class => [ 'editMedia' => [ TaoAssetRoles::ASSET_VIEWER => ActionAccessControl::READ, TaoAssetRoles::ASSET_CONTENT_CREATOR => ActionAccessControl::WRITE, ], ], ], ]; public function __invoke($params = []) { $setRolesAccess = $this->propagate(new SetRolesAccess()); $setRolesAccess([ '--' . SetRolesAccess::OPTION_CONFIG, self::CONFIG, ]); } }