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
|
|
@ -45,7 +45,7 @@ class DatabaseView(DataView):
|
|||
for table in table_counts:
|
||||
visible, private = await check_visibility(
|
||||
self.ds,
|
||||
request.scope.get("actor"),
|
||||
request.actor,
|
||||
"view-table",
|
||||
"table",
|
||||
(database, table),
|
||||
|
|
@ -71,7 +71,7 @@ class DatabaseView(DataView):
|
|||
for query in self.ds.get_canned_queries(database):
|
||||
visible, private = await check_visibility(
|
||||
self.ds,
|
||||
request.scope.get("actor"),
|
||||
request.actor,
|
||||
"view-query",
|
||||
"query",
|
||||
(database, query["name"]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue