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:
Simon Willison 2020-07-24 17:04:06 -07:00
commit 092874202c
4 changed files with 48 additions and 11 deletions

View file

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