Github user mitchell852 commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafficcontrol/pull/433#discussion_r112028749
  
    --- Diff: traffic_ops/app/lib/UI/Utils.pm ---
    @@ -413,4 +414,81 @@ sub current_user_tenant {
         return $self->db->resultset('TmUser')->search( { username => 
$self->current_user()->{username} } )->get_column('tenant_id')->single();
     }    
     
    +sub verify_tenancy {
    --- End diff --
    
    I would suggest that this method is never called inside a loop. for 
example, when looping thru a query result set. the 2 queries performed in this 
method will cause problems when TO is setup with a remote postgres database.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to