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 = []
|
tables = []
|
||||||
for table in table_counts:
|
for table in table_counts:
|
||||||
visible, private = await check_visibility(
|
visible, private = await check_visibility(
|
||||||
self.ds,
|
self.ds, request.actor, "view-table", "table", (database, table),
|
||||||
request.actor,
|
|
||||||
"view-table",
|
|
||||||
"table",
|
|
||||||
(database, table),
|
|
||||||
)
|
)
|
||||||
if not visible:
|
if not visible:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ class IndexView(BaseView):
|
||||||
"metadata": self.ds.metadata(),
|
"metadata": self.ds.metadata(),
|
||||||
"datasette_version": __version__,
|
"datasette_version": __version__,
|
||||||
"private": not await self.ds.permission_allowed(
|
"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