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
The BaseView class has a method for cascading permission checks, but it's not easily accessible to plugins.
BaseView
datasette/datasette/views/base.py
Lines 75 to 99 in 5eb8e9b
This leaves plugins like datasette-graphql having to implement their own versions of this logic, which is bad: simonw/datasette-graphql#65
datasette-graphql
First check view-database - if that says False then disallow access, if it says True then allow access. If it says None check view-instance.
view-database
False
True
None
view-instance
This should become a supported API that plugins are encouraged to use.
The text was updated successfully, but these errors were encountered:
This is implemented now:
Sorry, something went wrong.
No branches or pull requests
The
BaseView
class has a method for cascading permission checks, but it's not easily accessible to plugins.datasette/datasette/views/base.py
Lines 75 to 99 in 5eb8e9b
This leaves plugins like
datasette-graphql
having to implement their own versions of this logic, which is bad: simonw/datasette-graphql#65This should become a supported API that plugins are encouraged to use.
The text was updated successfully, but these errors were encountered: