@@ -175,9 +175,6 @@ protected void executeAction() throws Exception {
175
175
176
176
boolean isFirstCall = this .viewData .isShowJustForm ();
177
177
178
- // if user is TcOperations
179
- boolean isTcStaff = DirectUtils .isTcStaff (sessionData .getCurrentUser ());
180
-
181
178
// If client account IDs are not specified then use the first client account id
182
179
boolean customerIdIsSet = customerId > 0 ;
183
180
if (isFirstCall && !customerIdIsSet ) {
@@ -188,11 +185,6 @@ protected void executeAction() throws Exception {
188
185
break ;
189
186
}
190
187
191
- // if user is in the admin group change it to all customers
192
- if (isTcStaff ) {
193
- form .setCustomerId (0 );
194
- customerIdIsSet = true ;
195
- }
196
188
} else {
197
189
// check the customerId parameter
198
190
if (customerId > 0 ) {
@@ -234,16 +226,6 @@ protected void executeAction() throws Exception {
234
226
235
227
// set view data for clients
236
228
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
- }
247
229
248
230
// set view data for billings
249
231
if (getFormData ().getCustomerId () > 0 ) {
0 commit comments