kopia lustrzana https://github.com/simonw/datasette
Fix for todomvc permission check
Refs https://github.com/simonw/todomvc-datasette/issues/2pull/1930/head
rodzic
27efa8c381
commit
d7e5e3c9f9
|
@ -217,7 +217,10 @@ def permission_allowed(actor, action):
|
|||
return actor.get("can_download") if actor else None
|
||||
# Special permissions for latest.datasette.io demos
|
||||
# See https://github.com/simonw/todomvc-datasette/issues/2
|
||||
if actor == "todomvc" and action in (
|
||||
actor_id = None
|
||||
if actor:
|
||||
actor_id = actor.get("id")
|
||||
if actor_id == "todomvc" and action in (
|
||||
"insert-row",
|
||||
"create-table",
|
||||
"drop-table",
|
||||
|
|
Ładowanie…
Reference in New Issue