Fix notifications permission check.
Merge remote-tracking branch 'origin/master'