Documentation for "id": "*", refs #800

This commit is contained in:
Simon Willison 2020-06-06 11:23:54 -07:00
commit d4c7b85f55

View file

@ -108,6 +108,16 @@ You can provide access to any user that has "developer" as one of their roles li
Note that "roles" is not a concept that is baked into Datasette - it's more of a convention that plugins can choose to implement and act on.
If you want to provide access to any actor with a value for a specific key, use ``"*"``. For example, to spceify that a query can be accessed by any logged-in user use this:
.. code-block:: json
{
"allow": {
"id": "*"
}
}
These keys act as an "or" mechanism. A actor will be able to execute the query if any of their JSON properties match any of the values in the corresponding lists in the ``allow`` block.
.. _PermissionsDebugView: