Get tests working again

This commit is contained in:
Simon Willison 2020-06-08 10:16:24 -07:00
commit ab14b20b24
2 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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
),
},
)