Skip to content

Commit

Permalink
fixup! feat(settings): add occ commands to handle admin delegation
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gaussorgues <[email protected]>
  • Loading branch information
Altahrim committed Dec 7, 2023
1 parent c11f7d7 commit d04bae7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/settings/lib/Command/AdminDelegation/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public function __construct(

protected function configure(): void {
$this
->setName('settings:admin-delegation:add')
->setDescription('add delegated settings')
->setName('admin-delegation:add')
->setDescription('add setting delegation to a group')
->addArgument('settingClass', InputArgument::REQUIRED, 'Admin setting ID')
->addArgument('groupId', InputArgument::REQUIRED, 'Delegate to group ID')
;
Expand Down
4 changes: 2 additions & 2 deletions apps/settings/lib/Command/AdminDelegation/Remove.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function __construct(

protected function configure(): void {
$this
->setName('settings:admin-delegation:remove')
->setDescription('add delegated settings')
->setName('admin-delegation:remove')
->setDescription('remove settings delegation from a group')
->addArgument('settingClass', InputArgument::REQUIRED, 'Admin setting ID')
->addArgument('groupId', InputArgument::REQUIRED, 'Group ID to remove')
;
Expand Down
3 changes: 1 addition & 2 deletions apps/settings/lib/Command/AdminDelegation/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(

protected function configure(): void {
$this
->setName('settings:admin-delegation:show')
->setName('admin-delegation:show')
->setDescription('show delegated settings')
;
}
Expand All @@ -53,7 +53,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$io = new SymfonyStyle($input, $output);
$io->title('Current delegations');

$adminSections = $this->settingManager->getAdminSections();
$sections = $this->settingManager->getAdminSections();
$settings = [];
$headers = ['Name', 'SettingId', 'Delegated to groups'];
Expand Down

0 comments on commit d04bae7

Please sign in to comment.