1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-12 00:42:59 +00:00

Permit to disable notifications from app settings directly

This fixes issue #89
This commit is contained in:
Loic Blot
2016-01-30 23:23:27 +01:00
parent 4827856fe2
commit 74928c8e64
5 changed files with 88 additions and 36 deletions
+9
View File
@@ -82,6 +82,15 @@ class ConfigMapper extends Mapper {
}
return $limit;
}
public function getNotificationState () {
$st = $this->getKey("notification_state");
// Default state is 1/enabled
if ($st === false) {
$st = 1;
}
return $st;
}
};
?>