mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show padlock on private index page, refs #811
This commit is contained in:
parent
cc218fa9be
commit
1cf86e5ecc
3 changed files with 10 additions and 1 deletions
|
|
@ -121,5 +121,8 @@ class IndexView(BaseView):
|
|||
"databases": databases,
|
||||
"metadata": self.ds.metadata(),
|
||||
"datasette_version": __version__,
|
||||
"private": not await self.ds.permission_allowed(
|
||||
None, "view-instance"
|
||||
),
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue