From 1bca566ff30df1b71b62e1d1bda1c54de4ddee01 Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Mon, 29 Jun 2026 12:00:33 +0700 Subject: [PATCH] update --- app/Helpers/custom.php | 2 +- app/Http/Controllers/ProfileController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 .= ''; }