Add checks for bank_transaction in basecontroller
This commit is contained in:
parent
f1d6283a94
commit
84a985ec0e
1 changed files with 1 additions and 1 deletions
|
|
@ -823,7 +823,7 @@ class BaseController extends Controller
|
|||
//06-10-2022 - some entities do not have assigned_user_id - this becomes an issue when we have a large company and low permission users
|
||||
if(lcfirst(class_basename(Str::snake($this->entity_type))) == 'user')
|
||||
$query->where('id', auth()->user()->id);
|
||||
elseif(in_array(lcfirst(class_basename(Str::snake($this->entity_type))),['design','group_setting','payment_term'])){
|
||||
elseif(in_array(lcfirst(class_basename(Str::snake($this->entity_type))),['design','group_setting','payment_term','bank_transaction'])){
|
||||
//need to pass these back regardless
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue