diff options
Diffstat (limited to 'apps/sharebymail')
-rw-r--r-- | apps/sharebymail/lib/Settings/Admin.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/apps/sharebymail/lib/Settings/Admin.php b/apps/sharebymail/lib/Settings/Admin.php index 98ed251da9a..f1733b73bc0 100644 --- a/apps/sharebymail/lib/Settings/Admin.php +++ b/apps/sharebymail/lib/Settings/Admin.php @@ -24,15 +24,20 @@ namespace OCA\ShareByMail\Settings; use OCP\AppFramework\Http\TemplateResponse; -use OCP\Settings\ISettings; +use OCP\IL10N; +use OCP\Settings\IDelegatedSettings; -class Admin implements ISettings { +class Admin implements IDelegatedSettings { /** @var SettingsManager */ private $settingsManager; - public function __construct(SettingsManager $settingsManager) { + /** @var IL10N */ + private $l; + + public function __construct(SettingsManager $settingsManager, IL10N $l) { $this->settingsManager = $settingsManager; + $this->l = $l; } /** @@ -64,4 +69,14 @@ class Admin implements ISettings { public function getPriority() { return 40; } + + public function getName(): ?string { + return $this->l->t('Share by mail'); + } + + public function getAuthorizedAppConfig(): array { + return [ + 'sharebymail' => ['s/(sendpasswordmail|replyToInitiator)/'], + ]; + } } |