[ TaoItemsRoles::ITEM_PREVIEWER => [ ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'files'], ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'download'], ], TaoItemsRoles::ITEM_CONTENT_CREATOR => [ ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'authoring'], ], ], SetRolesAccess::CONFIG_PERMISSIONS => [ taoItems_actions_ItemContent::class => [ 'files' => [ TaoItemsRoles::ITEM_CLASS_NAVIGATOR => ActionAccessControl::DENY, ], ], ], ]; public function getDescription(): string { return 'Item content creator role to author existing item'; } public function up(Schema $schema): void { OntologyUpdater::syncModels(); $setRolesAccess = $this->propagate(new SetRolesAccess()); $setRolesAccess( [ '--' . SetRolesAccess::OPTION_CONFIG, self::CONFIG, ] ); } public function down(Schema $schema): void { $setRolesAccess = $this->propagate(new SetRolesAccess()); $setRolesAccess([ '--' . SetRolesAccess::OPTION_REVOKE, '--' . SetRolesAccess::OPTION_CONFIG, self::CONFIG, ]); } }