[ taoItems_actions_ItemContent::class => [ 'delete' => [ TaoItemsRoles::ITEM_CLASS_NAVIGATOR => ActionAccessControl::DENY, ], 'upload' => [ TaoItemsRoles::ITEM_CLASS_NAVIGATOR => ActionAccessControl::DENY, ], ], ], ]; public function getDescription(): string { return 'Configure delete endpoint for Item Class Navigator role'; } 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, ]); } }