mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	work on #754
This commit is contained in:
		@@ -418,7 +418,7 @@ func ChangeUserName(u *User, newUserName string) (err error) {
 | 
			
		||||
 | 
			
		||||
// UpdateUser updates user's information.
 | 
			
		||||
func UpdateUser(u *User) error {
 | 
			
		||||
	has, err := x.Where("id != ?", u.Id).And("email = ?", u.Email).Get(new(User))
 | 
			
		||||
	has, err := x.Where("id!=?", u.Id).And("email=?", u.Email).Get(new(User))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	} else if has {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user