mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Removed unneccessary isinstance(candidate, PermissionSQL)
This commit is contained in:
parent
4d6730e3c4
commit
9172020535
2 changed files with 0 additions and 8 deletions
|
|
@ -1090,8 +1090,6 @@ class Datasette:
|
|||
for candidate in candidates:
|
||||
if candidate is None:
|
||||
continue
|
||||
if not isinstance(candidate, PermissionSQL):
|
||||
continue
|
||||
plugin_blocks.append(candidate)
|
||||
|
||||
sql, params = build_rules_union(
|
||||
|
|
|
|||
|
|
@ -305,12 +305,6 @@ class AllowedResourcesView(BaseView):
|
|||
for candidate in candidates:
|
||||
if candidate is None:
|
||||
continue
|
||||
if not isinstance(candidate, PermissionSQL):
|
||||
logger.warning(
|
||||
"Skipping permission_resources_sql result %r from plugin; expected PermissionSQL",
|
||||
candidate,
|
||||
)
|
||||
continue
|
||||
plugins.append(candidate)
|
||||
|
||||
rows = await resolve_permissions_from_catalog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue