mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename _schemas to _internal, closes #1156
This commit is contained in:
parent
ebc7aa287c
commit
dcdfb2c301
9 changed files with 250 additions and 259 deletions
|
|
@ -13,7 +13,7 @@ def permission_allowed(datasette, actor, action, resource):
|
|||
if allow is not None:
|
||||
return actor_matches_allow(actor, allow)
|
||||
elif action == "view-database":
|
||||
if resource == "_schemas" and (actor is None or actor.get("id") != "root"):
|
||||
if resource == "_internal" and (actor is None or actor.get("id") != "root"):
|
||||
return False
|
||||
database_allow = datasette.metadata("allow", database=resource)
|
||||
if database_allow is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue