Don't include _memory on /-/create-token, refs #1947

This commit is contained in:
Simon Willison 2022-12-13 21:19:31 -08:00
commit 1a3dcf4943
2 changed files with 13 additions and 1 deletions

View file

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