@@ -175,9 +175,6 @@ protected void executeAction() throws Exception {
175175
176176 boolean isFirstCall = this .viewData .isShowJustForm ();
177177
178- // if user is TcOperations
179- boolean isTcStaff = DirectUtils .isTcStaff (sessionData .getCurrentUser ());
180-
181178 // If client account IDs are not specified then use the first client account id
182179 boolean customerIdIsSet = customerId > 0 ;
183180 if (isFirstCall && !customerIdIsSet ) {
@@ -188,11 +185,6 @@ protected void executeAction() throws Exception {
188185 break ;
189186 }
190187
191- // if user is in the admin group change it to all customers
192- if (isTcStaff ) {
193- form .setCustomerId (0 );
194- customerIdIsSet = true ;
195- }
196188 } else {
197189 // check the customerId parameter
198190 if (customerId > 0 ) {
@@ -234,16 +226,6 @@ protected void executeAction() throws Exception {
234226
235227 // set view data for clients
236228 getViewData ().setClientAccounts (customers );
237- if (isTcStaff ) {
238- Map <Long , String > tmpCustomers = new java .util .LinkedHashMap <Long , String >();
239- tmpCustomers .put (0L , "All Customers" );
240- for (Map .Entry <Long , String > c : customers .entrySet ()) {
241- tmpCustomers .put (c .getKey (), c .getValue ());
242-
243- }
244- customers = tmpCustomers ;
245- getViewData ().setClientAccounts (tmpCustomers );
246- }
247229
248230 // set view data for billings
249231 if (getFormData ().getCustomerId () > 0 ) {
0 commit comments