1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Now rights can be add to user groups too.

This commit is contained in:
Peter Varkoly 2022-02-21 17:15:21 +01:00
parent eda8309a04
commit 8d19fd7a64
4 changed files with 27 additions and 21 deletions

View file

@ -237,6 +237,11 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
authorization.encode("ascii"))).split(":", 1)
user = self._auth.login(login, password) or "" if login else ""
try:
logger.debug("Groups %r",",".join(self._auth._ldap_groups))
self._rights._user_groups = self._auth._ldap_groups
except AttributeError:
pass
if user and login == user:
logger.info("Successful login: %r", user)
elif user: