UI: new user tenancy is derived from the creating user
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/659f72d1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/659f72d1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/659f72d1 Branch: refs/heads/master Commit: 659f72d1c0501919ff2be64bf24027c5a5226a3e Parents: 3cbbb81 Author: nir-sopher <nirsop...@gmail.com> Authored: Mon Mar 20 10:43:31 2017 +0200 Committer: Jeremy Mitchell <mitchell...@gmail.com> Committed: Sun Apr 2 16:08:51 2017 -0600 ---------------------------------------------------------------------- traffic_ops/app/lib/UI/User.pm | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/659f72d1/traffic_ops/app/lib/UI/User.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/UI/User.pm b/traffic_ops/app/lib/UI/User.pm index 8d981b6..d21cbd9 100644 --- a/traffic_ops/app/lib/UI/User.pm +++ b/traffic_ops/app/lib/UI/User.pm @@ -288,6 +288,7 @@ sub create_user { { full_name => $self->param('tm_user.full_name'), username => $self->param('tm_user.username'), + tenant_id => current_user_tenant($self), #Tenancy is not dealt by the UI for now. getting the tenancy from the user public_ssh_key => $self->param('tm_user.public_ssh_key'), phone_number => $self->param('tm_user.phone_number'), email => $self->param('tm_user.email'),