mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	fix: checking normalized emails rather than user input
This commit is contained in:
		
							parent
							
								
									32785609f5
								
							
						
					
					
						commit
						f63bb15247
					
				@ -638,7 +638,7 @@ export class UsersManager {
 | 
			
		||||
        emailUsers.set(user.loginEmail, user);
 | 
			
		||||
      }
 | 
			
		||||
      emails.forEach((email) => {
 | 
			
		||||
        const userIdAffected = emailUsers.get(email)!.id;
 | 
			
		||||
        const userIdAffected = emailUsers.get(normalizeEmail(email))!.id;
 | 
			
		||||
        // Org-level sharing with everyone would allow serious spamming - forbid it.
 | 
			
		||||
        if (emailMap[email] !== null &&                    // allow removing anything
 | 
			
		||||
            userId !== this.getSupportUserId() &&          // allow support user latitude
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user