We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://docs.datasette.io/en/latest/plugin_hooks.html#register-permissions-datasette
This would benefit from an example of how to then check that registered permission.
The text was updated successfully, but these errors were encountered:
https://docs.datasette.io/en/latest/internals.html#await-permission-allowed-actor-action-resource-none-default needs example code too:
And that should link to the register_permissions() docs and vice-versa.
register_permissions()
Sorry, something went wrong.
I'd really like to fix that wart where resource= can be either a single string or a tuple of two strings though - that always catches me out.
resource=
No branches or pull requests
https://docs.datasette.io/en/latest/plugin_hooks.html#register-permissions-datasette
This would benefit from an example of how to then check that registered permission.
The text was updated successfully, but these errors were encountered: