mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Applied some fixes suggested by @withshubh in #1260
This commit is contained in:
parent
f92d823766
commit
d579fcf4f7
2 changed files with 3 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ def permission_allowed(actor, action):
|
|||
elif action == "this_is_denied":
|
||||
return False
|
||||
elif action == "view-database-download":
|
||||
return (actor and actor.get("can_download")) or None
|
||||
return actor.get("can_download") if actor else None
|
||||
|
||||
|
||||
@hookimpl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue