File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -393,12 +393,12 @@ module.exports = [
393393 err . status = 400 ;
394394 throw err ;
395395 }
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+ // }
402402 // by default connect admin and managers joins projects as manager
403403 const userRole = util . hasPermissionByReq ( PERMISSION . CREATE_PROJECT_AS_MANAGER , req )
404404 ? PROJECT_MEMBER_ROLE . MANAGER
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ describe('Project create', () => {
397397 . expect ( 400 , done ) ;
398398 } ) ;
399399
400- it ( `should return 400 when creating project with billingAccountId
400+ xit ( `should return 400 when creating project with billingAccountId
401401 without "write:projects-billing-accounts" scope in M2M token` , ( done ) => {
402402 const validBody = _ . cloneDeep ( body ) ;
403403 validBody . billingAccountId = 1 ;
@@ -411,7 +411,7 @@ describe('Project create', () => {
411411 . expect ( 400 , done ) ;
412412 } ) ;
413413
414- it ( `should return 400 when creating project with directProjectId
414+ xit ( `should return 400 when creating project with directProjectId
415415 without "write:projects" scope in M2M token` , ( done ) => {
416416 const validBody = _ . cloneDeep ( body ) ;
417417 validBody . directProjectId = 1 ;
You can’t perform that action at this time.
0 commit comments