mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Improvements to allow block logic and debug tool
true and false allow block values are now supported, closes #906 Added a bunch of demo links to the documentation, refs #908
This commit is contained in:
parent
88065fb74f
commit
092874202c
4 changed files with 48 additions and 11 deletions
|
|
@ -473,6 +473,12 @@ def test_multi_params(data, should_raise):
|
|||
# {} means deny-all:
|
||||
(None, {}, False),
|
||||
({"id": "root"}, {}, False),
|
||||
# true means allow-all
|
||||
({"id": "root"}, True, True),
|
||||
(None, True, True),
|
||||
# false means deny-all
|
||||
({"id": "root"}, False, False),
|
||||
(None, False, False),
|
||||
# Special case for "unauthenticated": true
|
||||
(None, {"unauthenticated": True}, True),
|
||||
(None, {"unauthenticated": False}, False),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue