summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/discuss.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/discuss.js')
-rw-r--r--addons/mail/static/src/js/discuss.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/discuss.js b/addons/mail/static/src/js/discuss.js
index 4de7e637e8b..52bf2b75822 100644
--- a/addons/mail/static/src/js/discuss.js
+++ b/addons/mail/static/src/js/discuss.js
@@ -905,7 +905,7 @@ var Discuss = Widget.extend(ControlPanelMixin, {
var def = window.Notification && window.Notification.requestPermission();
if (def) {
def.then(function (value) {
- if (value === 'denied') {
+ if (value !== 'granted') {
self._sendNotification(self, _t('Permission denied'),
_t('Odoo will not have the permission to send native notifications on this device.'));
} else {