main
Ilham Wara Nugroho 2026-06-29 12:00:33 +07:00
parent aaf8686e6c
commit 1bca566ff3
2 changed files with 2 additions and 2 deletions

View File

@ -2058,7 +2058,7 @@ if (!function_exists('permission')) {
if ($query > 0) {
return true;
} else {
return abort('401');
return false;
}
}
} else {

View File

@ -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 .= '<a href="'.url('profile-sekolah/update/'.encode_id($row->sekolah->MsSekolahId)).'" data-toggle="tooltip" title="Edit Data" class="btn btn-xs btn-block btn-primary"><i class="fal fa-pencil text-white"></i></a>';
}