mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Get tests working again
This commit is contained in:
parent
177059284d
commit
ab14b20b24
2 changed files with 2 additions and 6 deletions
|
|
@ -44,11 +44,7 @@ class DatabaseView(DataView):
|
|||
tables = []
|
||||
for table in table_counts:
|
||||
visible, private = await check_visibility(
|
||||
self.ds,
|
||||
request.actor,
|
||||
"view-table",
|
||||
"table",
|
||||
(database, table),
|
||||
self.ds, request.actor, "view-table", "table", (database, table),
|
||||
)
|
||||
if not visible:
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class IndexView(BaseView):
|
|||
"metadata": self.ds.metadata(),
|
||||
"datasette_version": __version__,
|
||||
"private": not await self.ds.permission_allowed(
|
||||
None, "view-instance"
|
||||
None, "view-instance", default=True
|
||||
),
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue