Skip to content
New issue

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

Ability to set permissions on a per-database basis #39

Open
simonw opened this issue Jan 30, 2024 · 0 comments
Open

Ability to set permissions on a per-database basis #39

simonw opened this issue Jan 30, 2024 · 0 comments

Comments

@simonw
Copy link
Owner

simonw commented Jan 30, 2024

Need to consider permissions here too. Currently:

async def upload_csvs(scope, receive, datasette, request):
if not await datasette.permission_allowed(
request.actor, "upload-csvs", default=False
):
raise Forbidden("Permission denied for upload-csvs")

That needs to take the database into consideration as well.

Good opportunity for me to revise (and maybe document) how Datasette permissions deal with changing an existing permission to now depend on a resource.

Originally posted by @simonw in #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant