mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Use "is None" instead of "== None"
This commit is contained in:
parent
76ba2e8b6c
commit
dd94660ef0
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ else:
|
|||
|
||||
def read_authorized(user, collection):
|
||||
"""Check if the user is allowed to read the collection."""
|
||||
if user == None:
|
||||
if user is None:
|
||||
return False
|
||||
elif owner_only.read_authorized(user, collection):
|
||||
return True
|
||||
|
@ -80,7 +80,7 @@ def read_authorized(user, collection):
|
|||
|
||||
def write_authorized(user, collection):
|
||||
"""Check if the user is allowed to write the collection."""
|
||||
if user == None:
|
||||
if user is None:
|
||||
return False
|
||||
elif owner_only.read_authorized(user, collection):
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue