datasette/datasette/utils
Simon Willison 65c427e4ee Ensure :actor, :actor_id and :action are all available to permissions SQL, closes #2520
- Updated build_rules_union() to accept actor as dict and provide :actor (JSON) and :actor_id
- Updated resolve_permissions_from_catalog() and resolve_permissions_with_candidates() to accept actor dict
- :actor is now the full actor dict as JSON (use json_extract() to access fields)
- :actor_id is the actor's id field for simple comparisons
- :action continues to be available as before
- Updated all call sites and tests to use new parameter format
- Added test demonstrating all three parameters working together
2025-10-24 10:32:18 -07:00
..
__init__.py Test improvements and fixed deprecation warnings (#2464) 2025-02-04 14:49:52 -08:00
actions_sql.py PluginSQL renamed to PermissionSQL, closes #2524 2025-10-24 10:32:18 -07:00
asgi.py Fix for RowNotFound, refs #2359 2024-06-21 16:10:16 -07:00
baseconv.py Rename to_decimal/from_decimal to decode/encode, refs #1734 2022-05-02 12:44:09 -07:00
check_callable.py Fix for asyncio.iscoroutinefunction deprecation warnings 2025-10-08 20:32:16 -07:00
internal_db.py catalog_views table, closes #2495 2025-07-15 10:22:56 -07:00
permissions.py Ensure :actor, :actor_id and :action are all available to permissions SQL, closes #2520 2025-10-24 10:32:18 -07:00
shutil_backport.py Upgrade to latest Black, closes #2239 2024-01-30 19:55:26 -08:00
sqlite.py Show pysqlite3 version on /-/versions, if installed - #1125 2020-12-03 14:08:50 -08:00
testing.py Fixed bug with ?_trace=1 and large responses, closes #2404 2024-08-21 10:58:17 -07:00