mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
dfafce6d96
commit
194e4f6c3f
6 changed files with 16 additions and 22 deletions
|
|
@ -66,16 +66,6 @@ class BaseView:
|
|||
response.body = b""
|
||||
return response
|
||||
|
||||
async def check_permission(self, request, action, resource=None):
|
||||
ok = await self.ds.permission_allowed(
|
||||
request.actor,
|
||||
action,
|
||||
resource=resource,
|
||||
default=True,
|
||||
)
|
||||
if not ok:
|
||||
raise Forbidden(action)
|
||||
|
||||
def database_color(self, database):
|
||||
return "ff0000"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue