mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Cascading permissions for .db download, closes #1058
This commit is contained in:
parent
c3aba4aa98
commit
7d9fedc176
3 changed files with 20 additions and 5 deletions
|
|
@ -193,6 +193,8 @@ def permission_allowed(actor, action):
|
|||
return True
|
||||
elif action == "this_is_denied":
|
||||
return False
|
||||
elif action == "view-database-download":
|
||||
return (actor and actor.get("can_download")) or None
|
||||
|
||||
|
||||
@hookimpl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue