mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-23 17:48:30 +00:00
is_authorized returns True when no auth method is set
This commit is contained in:
parent
45afac5353
commit
b4a7ada5f2
2 changed files with 46 additions and 47 deletions
|
@ -38,6 +38,8 @@ def load():
|
|||
|
||||
def is_authenticated(user, password):
|
||||
"""Check if the user is authenticated."""
|
||||
if AUTH is None:
|
||||
return True
|
||||
return AUTH.is_authenticated(user, password) if user else False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue