Skip to content

Commit 02385d5

Browse files
IONOS(admin-delegation): implement IDelegatedSettings for systemtags
now this setting can be delegated per php occ admin-delegation:add OCA\\SystemTags\\Settings\\Admin <groupId> Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
1 parent 0f8161d commit 02385d5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

apps/systemtags/lib/Settings/Admin.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
namespace OCA\SystemTags\Settings;
77

88
use OCP\AppFramework\Http\TemplateResponse;
9-
use OCP\Settings\ISettings;
9+
use OCP\IL10N;
10+
use OCP\Settings\IDelegatedSettings;
1011
use OCP\Util;
1112

12-
class Admin implements ISettings {
13+
class Admin implements IDelegatedSettings {
1314

15+
public function __construct(
16+
private IL10N $l10n,
17+
) {
18+
}
1419
/**
1520
* @return TemplateResponse
1621
*/
@@ -36,4 +41,12 @@ public function getSection() {
3641
public function getPriority() {
3742
return 70;
3843
}
44+
45+
public function getName(): string {
46+
return $this->l10n->t('Collaborative tags');
47+
}
48+
49+
public function getAuthorizedAppConfig(): array {
50+
return [];
51+
}
3952
}

0 commit comments

Comments
 (0)