update
parent
aaf8686e6c
commit
1bca566ff3
|
|
@ -2058,7 +2058,7 @@ if (!function_exists('permission')) {
|
||||||
if ($query > 0) {
|
if ($query > 0) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return abort('401');
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ class ProfileController extends Controller
|
||||||
|
|
||||||
$action = '';
|
$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>';
|
$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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue