mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Clearer docs for actor_matches_allow
This commit is contained in:
parent
eefeafaa27
commit
fa87d16612
2 changed files with 3 additions and 2 deletions
|
|
@ -867,7 +867,8 @@ async def async_call_with_supported_arguments(fn, **kwargs):
|
|||
|
||||
|
||||
def actor_matches_allow(actor, allow):
|
||||
actor = actor or {}
|
||||
if actor is None:
|
||||
actor = {"anonymous": True}
|
||||
if allow is None:
|
||||
return True
|
||||
for key, values in allow.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue