mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 11:57:41 +02:00
fix notification adding error
The test on whether the user notification queue existed or not was just wrong.
This commit is contained in:
parent
af01f9bae3
commit
e981451431
2 changed files with 3 additions and 1 deletions
|
@ -431,7 +431,7 @@ class LdapCherry(object):
|
|||
"""
|
||||
sess = cherrypy.session
|
||||
username = sess.get(SESSION_KEY, None)
|
||||
if username is not self.notifications:
|
||||
if username not in self.notifications:
|
||||
self.notifications[username] = []
|
||||
self.notifications[username].append(message)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue