mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Nested permission checks for all views, refs #811
This commit is contained in:
parent
86dec9e8ff
commit
4340845754
6 changed files with 97 additions and 48 deletions
|
|
@ -22,7 +22,7 @@ class IndexView(BaseView):
|
|||
self.ds = datasette
|
||||
|
||||
async def get(self, request, as_format):
|
||||
await self.check_permission(request, "view-index")
|
||||
await self.check_permission(request, "view-instance")
|
||||
databases = []
|
||||
for name, db in self.ds.databases.items():
|
||||
table_names = await db.table_names()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue