tenant utils - no special treatment for ldap
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/4d2951c8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/4d2951c8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/4d2951c8 Branch: refs/heads/master Commit: 4d2951c84edd828509ee6812cb3475162db90a21 Parents: 9061217 Author: nir-sopher <[email protected]> Authored: Tue Jun 6 07:32:49 2017 +0300 Committer: Jeremy Mitchell <[email protected]> Committed: Tue Jul 18 12:12:32 2017 -0600 ---------------------------------------------------------------------- traffic_ops/app/lib/UI/TenantUtils.pm | 13 ------------- 1 file changed, 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4d2951c8/traffic_ops/app/lib/UI/TenantUtils.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/UI/TenantUtils.pm b/traffic_ops/app/lib/UI/TenantUtils.pm index c49bb14..d21505f 100644 --- a/traffic_ops/app/lib/UI/TenantUtils.pm +++ b/traffic_ops/app/lib/UI/TenantUtils.pm @@ -67,7 +67,6 @@ sub new { # In order to reduce the number of calls from the DB, the current user tenant is taken in the class creation. # the below parameters are held temporarily until the info is taken from the jwt current_user_tenant => $current_user_tenant, - is_ldap => defined($context) ? $context->is_ldap() : 0, }; bless $self, $class; return $self; @@ -369,18 +368,6 @@ sub _is_resource_accessable { return 1; } - if ( $self->{is_ldap} ) { - if ( $operation eq "r" ) { - -#ldap user, can read all tenants - temporary for now as an LDAP user as no tenant and is part of the TC operator. -# should be removed when LDAP is gone - return 1; - } - - #ldap user, has no tenancy, cannot write anything - return 0; - } - my $user_tenant = $self->current_user_tenant(); if ( !defined($user_tenant) ) {
