trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dang...@apache.org
Subject [2/5] incubator-trafficcontrol git commit: This closes #642
Date Wed, 12 Jul 2017 19:02:44 GMT
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/aaeadcac/traffic_ops/app/lib/UI/Cdn.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/Cdn.pm b/traffic_ops/app/lib/UI/Cdn.pm
index 7944603..a8e00ab 100644
--- a/traffic_ops/app/lib/UI/Cdn.pm
+++ b/traffic_ops/app/lib/UI/Cdn.pm
@@ -848,7 +848,11 @@ sub login {
             $referer = '/';
         }
         if ( $referer =~ /\/login/ ) {
-            $referer = '/edge_health';
+            if ( &UI::Utils::is_ldap($self) ) {
+                $referer = '/dailysummary'; # LDAP-only users can't see edge_health
+            } else {
+                $referer = '/edge_health';
+            }
         }
         return $self->redirect_to($referer);
     }


Mime
View raw message