From da0da83431a9bc0ad2eb43e982093124cfabafee Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 2 Jul 2012 15:22:27 -0700 Subject: [PATCH] Fix display of admin "new value" in `accountadmin` script Summary: I broke this when converting to PhabricatorUserEditor. Test Plan: Ran `accountadmin`, created an admin account, verified the "new value" column showed "Y". ACCOUNT SUMMARY OLD VALUE NEW VALUE Username derp Real Name derprp Email derp@derp.com Password Unchanged Admin N Y Reviewers: btrahan, nikil Reviewed By: btrahan CC: aran Maniphest Tasks: T1434 Differential Revision: https://secure.phabricator.com/D2908 --- scripts/user/account_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/user/account_admin.php b/scripts/user/account_admin.php index 52c09f2781..ad403cf9e9 100755 --- a/scripts/user/account_admin.php +++ b/scripts/user/account_admin.php @@ -136,7 +136,7 @@ printf( $tpl, 'Admin', $original->getIsAdmin() ? 'Y' : 'N', - $user->getIsAdmin() ? 'Y' : 'N'); + $set_admin ? 'Y' : 'N'); echo "\n";