File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -393,12 +393,12 @@ module.exports = [
393
393
err . status = 400 ;
394
394
throw err ;
395
395
}
396
- if ( _ . has ( project , 'billingAccountId' ) &&
397
- ! util . hasPermissionByReq ( PERMISSION . MANAGE_PROJECT_BILLING_ACCOUNT_ID , req ) ) {
398
- const err = new Error ( 'You do not have permission to set \'billingAccountId\' property' ) ;
399
- err . status = 400 ;
400
- throw err ;
401
- }
396
+ // if (_.has(project, 'billingAccountId') &&
397
+ // !util.hasPermissionByReq(PERMISSION.MANAGE_PROJECT_BILLING_ACCOUNT_ID, req)) {
398
+ // const err = new Error('You do not have permission to set \'billingAccountId\' property');
399
+ // err.status = 400;
400
+ // throw err;
401
+ // }
402
402
// by default connect admin and managers joins projects as manager
403
403
const userRole = util . hasPermissionByReq ( PERMISSION . CREATE_PROJECT_AS_MANAGER , req )
404
404
? PROJECT_MEMBER_ROLE . MANAGER
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ describe('Project create', () => {
397
397
. expect ( 400 , done ) ;
398
398
} ) ;
399
399
400
- it ( `should return 400 when creating project with billingAccountId
400
+ xit ( `should return 400 when creating project with billingAccountId
401
401
without "write:projects-billing-accounts" scope in M2M token` , ( done ) => {
402
402
const validBody = _ . cloneDeep ( body ) ;
403
403
validBody . billingAccountId = 1 ;
@@ -411,7 +411,7 @@ describe('Project create', () => {
411
411
. expect ( 400 , done ) ;
412
412
} ) ;
413
413
414
- it ( `should return 400 when creating project with directProjectId
414
+ xit ( `should return 400 when creating project with directProjectId
415
415
without "write:projects" scope in M2M token` , ( done ) => {
416
416
const validBody = _ . cloneDeep ( body ) ;
417
417
validBody . directProjectId = 1 ;
You can’t perform that action at this time.
0 commit comments