diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 3b66f69..a61f214 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -2058,7 +2058,7 @@ if (!function_exists('permission')) { if ($query > 0) { return true; } else { - return abort('401'); + return false; } } } else { diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 8440a91..370bb8e 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -279,7 +279,7 @@ class ProfileController extends Controller $action = ''; - if((@permission('is_create', $this->route.'.*','module',false)) || (@permission('is_update', $this->route.'.*','module',false))){ + if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ $action .= ''; }