You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2016/11/01 04:02:11 UTC
incubator-trafficcontrol git commit: adds back localUser field to
/api/user/current route
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master eabcae2cd -> b5e70cd59
adds back localUser field to /api/user/current route
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b5e70cd5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b5e70cd5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b5e70cd5
Branch: refs/heads/master
Commit: b5e70cd59984d9f83430adf7970cb0d5e0b330db
Parents: eabcae2
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Mon Oct 31 15:32:26 2016 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Oct 31 22:01:41 2016 -0600
----------------------------------------------------------------------
traffic_ops/app/lib/API/User.pm | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b5e70cd5/traffic_ops/app/lib/API/User.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/User.pm b/traffic_ops/app/lib/API/User.pm
index 0dac324..2e6b387 100644
--- a/traffic_ops/app/lib/API/User.pm
+++ b/traffic_ops/app/lib/API/User.pm
@@ -286,6 +286,7 @@ sub current {
"email" => "",
"fullName" => "",
"newUser" => \0,
+ "localUser" => \0,
"addressLine1" => "",
"addressLine2" => "",
"city" => "",
@@ -313,6 +314,7 @@ sub current {
"email" => $row->email,
"fullName" => $row->full_name,
"newUser" => \$row->new_user,
+ "localUser" => \1,
"addressLine1" => $row->address_line1,
"addressLine2" => $row->address_line2,
"city" => $row->city,