Skip to content

Commit 831def8

Browse files
committed
Allow to grant log access
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent d777e13 commit 831def8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

lib/Settings/Admin.php

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@
2222
namespace OCA\LogReader\Settings;
2323

2424
use OCP\AppFramework\Http\TemplateResponse;
25-
use OCP\Settings\ISettings;
25+
use OCP\IL10N;
26+
use OCP\Settings\IDelegatedSettings;
2627

27-
class Admin implements ISettings {
28+
class Admin implements IDelegatedSettings {
29+
/** @var IL10N */
30+
private $l;
31+
32+
public function __construct(IL10N $l) {
33+
$this->l = $l;
34+
}
2835
/**
2936
* @return TemplateResponse
3037
*/
@@ -52,4 +59,12 @@ public function getSection() {
5259
public function getPriority() {
5360
return 90;
5461
}
62+
63+
public function getName(): ?string {
64+
return null;
65+
}
66+
67+
public function getAuthorizedAppConfig(): array {
68+
return [];
69+
}
5570
}

0 commit comments

Comments
 (0)