File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
apps/models_provider/views Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,11 @@ class ModelList(APIView):
278278 responses = ModelListResponse .get_response (),
279279 tags = [_ ('Model' )]) # type: ignore
280280 @has_permissions (PermissionConstants .MODEL_READ .get_workspace_permission (),
281+ PermissionConstants .KNOWLEDGE_READ .get_workspace_permission (),
282+ PermissionConstants .APPLICATION_READ .get_workspace_permission (),
283+ PermissionConstants .MODEL_READ .get_workspace_permission_workspace_manage_role (),
284+ PermissionConstants .KNOWLEDGE_READ .get_workspace_permission_workspace_manage_role (),
285+ PermissionConstants .APPLICATION_READ .get_workspace_permission_workspace_manage_role (),
281286 RoleConstants .WORKSPACE_MANAGE .get_workspace_role (), RoleConstants .USER .get_workspace_role ())
282287 def get (self , request : Request , workspace_id : str ):
283288 return result .success (
You can’t perform that action at this time.
0 commit comments