fixed table action permission issue

This commit is contained in:
Cüneyt Şentürk
2023-05-22 15:55:23 +03:00
parent 4f31721396
commit 311b6c7da8
2 changed files with 48 additions and 51 deletions

View File

@ -548,7 +548,7 @@ class Company extends Eloquent implements Ownable
'title' => trans('general.switch'),
'icon' => 'settings_ethernet',
'url' => route('companies.switch', $this->id),
'permission' => 'read-common-companies',
//'permission' => 'read-common-companies', remove this permission to allow switching to any company
'attributes' => [
'id' => 'index-line-actions-switch-company-' . $this->id,
],