Compare commits

..

3 Commits

Author SHA1 Message Date
Ferdinand Thiessen a094edf6cd [auth_ldap] modify_role has to be called before the update to change it on the backend 2021-08-30 14:40:46 +02:00
Ferdinand Thiessen 2dc511db11 [auth_ldap] Fix typo in __init__ 2021-08-30 14:40:46 +02:00
Ferdinand Thiessen 459b61aa70 [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-08-30 14:40:46 +02:00
1 changed files with 1 additions and 2 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:
clear_backup(event)
return clear_backup(event)
return event
@ -154,7 +154,6 @@ 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()