Skip to content

Commit f1d0f90

Browse files
author
Maksym Mykhailenko
committed
chore: temporary disable admin check in milestones update
1 parent f6cad04 commit f1d0f90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/milestones/commonHelper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ async function updateMilestone(authUser, timelineId, data, transaction, item) {
123123
(isUpdatedCompletionDate || isUpdatedActualStartDate)
124124
&& !util.hasPermission({ topcoderRoles: ADMIN_ROLES }, authUser)
125125
) {
126-
const apiErr = new Error('You are not allowed to perform this action.');
127-
apiErr.status = 403;
128-
throw apiErr;
126+
// const apiErr = new Error('You are not allowed to perform this action.');
127+
// apiErr.status = 403;
128+
// throw apiErr;
129129
}
130130

131131
if (

0 commit comments

Comments
 (0)