mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: avoid scope issues
This commit is contained in:
		
							parent
							
								
									321c9a8492
								
							
						
					
					
						commit
						d514356030
					
				| @ -363,9 +363,9 @@ export default class ProjectService { | ||||
|         const role = await this.findProjectRole(projectId, roleId); | ||||
| 
 | ||||
|         const usersWithRoles = await this.getUsersWithAccess(projectId); | ||||
|         const user = usersWithRoles.users.find((user) => user.id === userId); | ||||
|         const user = usersWithRoles.users.find((u) => u.id === userId); | ||||
|         const currentRole = usersWithRoles.roles.find( | ||||
|             (role) => role.id === user.roleId, | ||||
|             (r) => r.id === user.roleId, | ||||
|         ); | ||||
| 
 | ||||
|         if (currentRole.id === roleId) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user