mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: rbac should pick up projectId from path if available
This commit is contained in:
		
							parent
							
								
									2be077007d
								
							
						
					
					
						commit
						e5035f96e1
					
				| @ -53,7 +53,7 @@ const rbacMiddleware = ( | ||||
|                 const { featureName } = params; | ||||
|                 projectId = await featureToggleStore.getProjectId(featureName); | ||||
|             } else if (permission === CREATE_FEATURE) { | ||||
|                 projectId = req.body.project || 'default'; | ||||
|                 projectId = projectId || req.body.project || 'default'; | ||||
|             } | ||||
| 
 | ||||
|             return accessService.hasPermission( | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user