Skip to content
Snippets Groups Projects
Unverified Commit f65e36a7 authored by Julius Härtl's avatar Julius Härtl
Browse files

Hide development notice when subscription is valid


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 41afaa99
No related branches found
No related tags found
No related merge requests found
......@@ -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';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment