mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
debug-menu permission, closes #1068
Also added tests for navigation menu logic.
This commit is contained in:
parent
9f0987cb57
commit
222f79bb4c
6 changed files with 58 additions and 4 deletions
|
|
@ -96,7 +96,8 @@ class PermissionsDebugView(BaseView):
|
|||
return await self.render(
|
||||
["permissions_debug.html"],
|
||||
request,
|
||||
{"permission_checks": reversed(self.ds._permission_checks)},
|
||||
# list() avoids error if check is performed during template render:
|
||||
{"permission_checks": list(reversed(self.ds._permission_checks))},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue