mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Remove used_default feature from permission system, refs #2528
The new SQL-based permission system always resolves to True or False, so the concept of "used default" (tracking when no hook had an opinion) is no longer relevant. Removes: - used_default from permission check logging in app.py - used_default from permission debug responses in special.py - used_default display from permissions_debug.html template - used_default from test expectations in test_permissions.py This simplifies the permission system by eliminating the "no opinion" state.
This commit is contained in:
parent
5c6b76f2f0
commit
bc81975d85
2 changed files with 14 additions and 13 deletions
|
|
@ -1301,7 +1301,6 @@ class Datasette:
|
|||
"actor": actor,
|
||||
"action": action,
|
||||
"resource": old_style_resource,
|
||||
"used_default": False, # New system doesn't use defaults in the same way
|
||||
"result": result,
|
||||
"reason": None, # Not tracked in new system
|
||||
"source_plugin": None, # Not tracked in new system
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue