Skip to content

Commit b3568d5

Browse files
committed
Subcode refactored on team deletion permission checks
1 parent a0ef91f commit b3568d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/services/team_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ async def ensure_unlink_allowed(
907907
f"this is the only project-manager team. Contact the project admin "
908908
f"to assign another project manager team before unlinking."
909909
),
910-
"SubCode": "ProjectPermissionError",
910+
"SubCode": "ProjectManagementPermissionError",
911911
},
912912
status_code=403,
913913
)
@@ -933,7 +933,7 @@ async def ensure_unlink_allowed(
933933
f"and this is the only mapper team. Contact the project admin "
934934
f"to unlink the team and assign another mapper team."
935935
),
936-
"SubCode": "ProjectPermissionError",
936+
"SubCode": "TeamMappingPermissionError",
937937
},
938938
status_code=403,
939939
)
@@ -959,7 +959,7 @@ async def ensure_unlink_allowed(
959959
f"and this is the only validator team. Contact the project admin "
960960
f"to unlink the team and assign another validator team."
961961
),
962-
"SubCode": "ProjectPermissionError",
962+
"SubCode": "TeamValidationPermissionError",
963963
},
964964
status_code=403,
965965
)

0 commit comments

Comments
 (0)