mirror of https://github.com/jumpserver/jumpserver
fix: 修复权限 view 没有 Model 的问题
parent
2ec0cb8a2c
commit
2721793b8f
|
@ -93,7 +93,7 @@ class RBACPermission(permissions.DjangoModelPermissions):
|
|||
try:
|
||||
queryset = self._queryset(view)
|
||||
model_cls = queryset.model
|
||||
except AssertionError:
|
||||
except:
|
||||
model_cls = None
|
||||
return model_cls
|
||||
|
||||
|
|
Loading…
Reference in New Issue