Skip to content

Commit 0743370

Browse files
committed
fix: common user use of shared model params
1 parent c4293c3 commit 0743370

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/models_provider/views/model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ class ModelParamsForm(APIView):
188188
PermissionConstants.MODEL_READ.get_workspace_permission_workspace_manage_role(),
189189
PermissionConstants.MODEL_READ.get_workspace_permission(),
190190
RoleConstants.WORKSPACE_MANAGE.get_workspace_role(),
191-
ViewPermission([RoleConstants.USER.get_workspace_role()],
192-
[PermissionConstants.MODEL.get_workspace_model_permission()],
193-
CompareConstants.AND), )
191+
RoleConstants.USER.get_workspace_role(),)
194192
def get(self, request: Request, workspace_id: str, model_id: str):
195193
return result.success(
196194
ModelSerializer.ModelParams(data={'id': model_id}).get_model_params())

0 commit comments

Comments
 (0)