Skip to content

Commit ad513bd

Browse files
committed
Allow delegation of admin settings.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
1 parent 91e8cac commit ad513bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/Settings/Admin.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323

2424
use OCA\UserSQL\Properties;
2525
use OCP\AppFramework\Http\TemplateResponse;
26-
use OCP\Settings\ISettings;
26+
use OCP\Settings\IDelegatedSettings;
2727

2828
/**
2929
* The administrator's settings page.
3030
*
3131
* @author Marcin Łojewski <dev@mlojewski.me>
3232
*/
33-
class Admin implements ISettings
33+
class Admin implements IDelegatedSettings
3434
{
3535
/**
3636
* @var string The application name.
@@ -76,4 +76,12 @@ public function getPriority()
7676
{
7777
return 25;
7878
}
79+
80+
public function getName(): ?string {
81+
return null; // Only one setting in this section
82+
}
83+
84+
public function getAuthorizedAppConfig(): array {
85+
return []; // Custom controller
86+
}
7987
}

0 commit comments

Comments
 (0)