Compare commits

..

4 Commits

Author SHA1 Message Date
Ferdinand Thiessen b99c43f63d [auth_ldap] modify_role has to be called before the update to change it on the backend 2021-11-11 12:25:31 +01:00
Ferdinand Thiessen cf65b17577 [auth_ldap] Fix typo in __init__ 2021-11-11 12:25:31 +01:00
Ferdinand Thiessen 3e21cd05b1 [auth_ldap] Allow more configuration
* Allow configuring the password hash (SSHA, PBKDF2 or Argon2)
* Allow setting custom dn templates for users and groups to e.g. allow "ou=people" or "ou=user"
* Allow setting custom object class for entries
* Stop using deprecated openssl constants
2021-11-11 12:25:31 +01:00
Ferdinand Thiessen 2dabd1dd34 [events] Fix deleteing an event 2021-11-11 12:23:45 +01:00
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,7 @@ def get_event(event_id, with_backup=False) -> Event:
if event is None:
raise NotFound
if not with_backup:
return clear_backup(event)
clear_backup(event)
return event
@ -154,6 +154,7 @@ def delete_event(event_id):
NotFound if not found
"""
event = get_event(event_id)
logger.info(f"{type(event)} {event.__str__}")
db.session.delete(event)
db.session.commit()