mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New request.actor property, refs #811
This commit is contained in:
parent
2a8b39800f
commit
177059284d
8 changed files with 16 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ class IndexView(BaseView):
|
|||
databases = []
|
||||
for name, db in self.ds.databases.items():
|
||||
visible, private = await check_visibility(
|
||||
self.ds, request.scope.get("actor"), "view-database", "database", name,
|
||||
self.ds, request.actor, "view-database", "database", name,
|
||||
)
|
||||
if not visible:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue