Skip to content

Commit e491fff

Browse files
author
Vikas Agarwal
committed
Disabling the billing account id special permission requirements.
1 parent 0413b62 commit e491fff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/routes/projects/update.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ const validateUpdates = (existingProject, updatedProps, req) => {
146146
!util.hasPermissionByReq(PERMISSION.MANAGE_PROJECT_DIRECT_PROJECT_ID, req)) {
147147
errors.push('You do not have permission to update \'directProjectId\' property');
148148
}
149-
if (_.has(updatedProps, 'billingAccountId') &&
150-
!util.hasPermissionByReq(PERMISSION.MANAGE_PROJECT_BILLING_ACCOUNT_ID, req)) {
151-
errors.push('You do not have permission to update \'billingAccountId\' property');
152-
}
149+
// if (_.has(updatedProps, 'billingAccountId') &&
150+
// !util.hasPermissionByReq(PERMISSION.MANAGE_PROJECT_BILLING_ACCOUNT_ID, req)) {
151+
// errors.push('You do not have permission to update \'billingAccountId\' property');
152+
// }
153153
if ((existingProject.status !== PROJECT_STATUS.DRAFT) && (updatedProps.status === PROJECT_STATUS.DRAFT)) {
154154
errors.push('cannot update a project status to draft');
155155
}

src/routes/projects/update.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ describe('Project', () => {
658658
});
659659
});
660660

661-
it('should return 400 when updating billingAccountId without "write:projects-billing-accounts" scope in M2M token',
661+
xit('should return 400 when updating billingAccountId without "write:projects-billing-accounts" scope in M2M token',
662662
(done) => {
663663
request(server)
664664
.patch(`/v5/projects/${project1.id}`)

0 commit comments

Comments
 (0)