[ TaoItemsRoles::ITEM_IMPORTER => [ ['ext' => 'taoItems', 'mod' => 'ItemImport', 'act' => 'index'], ], TaoItemsRoles::ITEM_DELETER => [ ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'deleteItem'], ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'moveInstance'], ], TaoItemsRoles::ITEM_CONTENT_CREATOR => [ ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'fileExists'], ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'upload'], ], ], ]; public function getDescription(): string { return 'Configure permissions for Item Importer, Deleter and content creator 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, ]); } }