You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/07/16 10:14:23 UTC

[04/12] incubator-ignite git commit: # ignite-843 Minor fix

# ignite-843 Minor fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9c463ccd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9c463ccd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9c463ccd

Branch: refs/heads/ignite-1121
Commit: 9c463ccdfd56606a39d4fc2426f5437776f04e4f
Parents: ecd9ae1
Author: Andrey <an...@gridgain.com>
Authored: Thu Jul 16 09:53:30 2015 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Thu Jul 16 09:53:30 2015 +0700

----------------------------------------------------------------------
 modules/web-control-center/nodejs/controllers/admin-controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9c463ccd/modules/web-control-center/nodejs/controllers/admin-controller.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/nodejs/controllers/admin-controller.js b/modules/web-control-center/nodejs/controllers/admin-controller.js
index b67d7d9..dc6957a 100644
--- a/modules/web-control-center/nodejs/controllers/admin-controller.js
+++ b/modules/web-control-center/nodejs/controllers/admin-controller.js
@@ -54,7 +54,7 @@ controlCenterModule.controller('adminController', ['$scope', '$http', '$confirm'
 
         user.adminChanging = true;
 
-        $http.post('admin/save', {userId: user._id, adminFlag: !user.admin}).success(
+        $http.post('admin/save', {userId: user._id, adminFlag: user.admin}).success(
             function () {
                 commonFunctions.showInfo('Admin right was successfully toggled for user: "' + user.username + '"');