mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	admin: Fix reactivating bot users.
Because the `owner` field had the class email, we were sending the concatination of the user and owner email addresses as the email address in the reactivate requests. Fixes #243.
This commit is contained in:
		@@ -151,7 +151,7 @@ exports.setup_page = function () {
 | 
			
		||||
 | 
			
		||||
        var email = $(".active_user_row").find('.email').text();
 | 
			
		||||
        channel.post({
 | 
			
		||||
            url: '/json/users/' + $(".active_user_row").find('.email').text() + "/reactivate",
 | 
			
		||||
            url: '/json/users/' + email + "/reactivate",
 | 
			
		||||
            error: function (xhr, error_type) {
 | 
			
		||||
                if (xhr.status.toString().charAt(0) === "4") {
 | 
			
		||||
                    $(".active_user_row button").closest("td").html(
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
  </td>
 | 
			
		||||
  {{#if is_bot}}
 | 
			
		||||
    <td>
 | 
			
		||||
      <span class="email">{{bot_owner}}</span>
 | 
			
		||||
      <span class="owner">{{bot_owner}}</span>
 | 
			
		||||
    </td>
 | 
			
		||||
  {{/if}}
 | 
			
		||||
  <td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user