Skip to content

Commit dbbd2f9

Browse files
authored
fix: model permission (#3300)
1 parent b9304f0 commit dbbd2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/models_provider/views/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class SharedModel(APIView):
235235
responses=ModelListResponse.get_response(),
236236
tags=[_('Shared Model')]
237237
) # type: ignore
238-
@has_permissions(PermissionConstants.MODEL_READ, RoleConstants.WORKSPACE_MANAGE.get_workspace_role()())
238+
@has_permissions(PermissionConstants.MODEL_READ, RoleConstants.WORKSPACE_MANAGE.get_workspace_role())
239239
def get(self, request: Request, workspace_id: str):
240240
return result.success(
241241
SharedModelSerializer(data={'workspace_id': workspace_id}).get_share_model_list())

0 commit comments

Comments
 (0)