mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't include _memory on /-/create-token, refs #1947
This commit is contained in:
parent
420d0a0ee2
commit
1a3dcf4943
2 changed files with 13 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ class CreateTokenView(BaseView):
|
|||
# Build list of databases and tables the user has permission to view
|
||||
database_with_tables = []
|
||||
for database in self.ds.databases.values():
|
||||
if database.name == "_internal":
|
||||
if database.name in ("_internal", "_memory"):
|
||||
continue
|
||||
if not await self.ds.permission_allowed(
|
||||
request.actor, "view-database", database.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue