mirror of
https://github.com/simonw/datasette.git
synced 2026-09-28 12:54:10 +02:00
Require view-instance permission for /-/allowed
Refs GHSA-hp2x-vx2r-6vxg Co-authored-by: Alex Garcia <15178711+asg017@users.noreply.github.com>
This commit is contained in:
parent
4904249025
commit
01bf476d51
2 changed files with 29 additions and 0 deletions
|
|
@ -311,6 +311,7 @@ class AllowedResourcesView(BaseView):
|
|||
has_json_alternate = False
|
||||
|
||||
async def get(self, request):
|
||||
await self.ds.ensure_permission(action="view-instance", actor=request.actor)
|
||||
await self.ds.refresh_schemas()
|
||||
|
||||
# Check if user has permissions-debug (to show sensitive fields)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue