diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-06 13:08:23 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-06 13:08:23 +0100 |
commit | f65e36a70cd8f143d71104df59a9d3cfe828515c (patch) | |
tree | 9b30a940fb473e0e00c88dae90eee38f1dcb9799 /apps/settings/lib | |
parent | 41afaa999e23f1ceb23afa09cbf9b46cf7207f25 (diff) | |
download | nextcloud-server-f65e36a70cd8f143d71104df59a9d3cfe828515c.tar.gz nextcloud-server-f65e36a70cd8f143d71104df59a9d3cfe828515c.zip |
Hide development notice when subscription is valid
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/Settings/Personal/ServerDevNotice.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/settings/lib/Settings/Personal/ServerDevNotice.php b/apps/settings/lib/Settings/Personal/ServerDevNotice.php index f69863fe35e..578211dcc00 100644 --- a/apps/settings/lib/Settings/Personal/ServerDevNotice.php +++ b/apps/settings/lib/Settings/Personal/ServerDevNotice.php @@ -27,8 +27,17 @@ namespace OCA\Settings\Settings\Personal; use OCP\AppFramework\Http\TemplateResponse; use OCP\Settings\ISettings; +use OCP\Support\Subscription\IRegistry; class ServerDevNotice implements ISettings { + + /** @var IRegistry */ + private $registry; + + public function __construct(IRegistry $registry) { + $this->registry = $registry; + } + /** * @return TemplateResponse */ @@ -40,6 +49,10 @@ class ServerDevNotice implements ISettings { * @return string the section ID, e.g. 'sharing' */ public function getSection() { + if ($this->registry->delegateHasValidSubscription()) { + return null; + } + return 'personal-info'; } |