diff --git a/app/Models/Common/Company.php b/app/Models/Common/Company.php index 754c498a1f3..5756ac02c57 100644 --- a/app/Models/Common/Company.php +++ b/app/Models/Common/Company.php @@ -548,7 +548,7 @@ public function getLineActionsAttribute() '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, ], diff --git a/resources/views/components/table/actions.blade.php b/resources/views/components/table/actions.blade.php index d9fbd4750cc..be8853aa8d3 100644 --- a/resources/views/components/table/actions.blade.php +++ b/resources/views/components/table/actions.blade.php @@ -8,73 +8,70 @@ @else