fix certificates button on AngelTypes_view, add id to location change log
This commit is contained in:
parent
6e76843db4
commit
e6251256b3
|
@ -202,13 +202,21 @@ function AngelType_view_buttons(
|
|||
$user_license,
|
||||
$user
|
||||
) {
|
||||
if (config('driving_license_enabled') && $angeltype->requires_driver_license) {
|
||||
if (
|
||||
config('driving_license_enabled')
|
||||
&& $angeltype->requires_driver_license
|
||||
&& $user_angeltype
|
||||
) {
|
||||
$buttons[] = button(
|
||||
url('/settings/certificates'),
|
||||
icon('person-vcard') . __('My driving license')
|
||||
);
|
||||
}
|
||||
if (config('ifsg_enabled') && $angeltype->requires_ifsg_certificate) {
|
||||
if (
|
||||
config('ifsg_enabled')
|
||||
&& $angeltype->requires_ifsg_certificate
|
||||
&& $user_angeltype
|
||||
) {
|
||||
$buttons[] = button(
|
||||
url('/settings/certificates'),
|
||||
icon('card-checklist') . __('angeltype.ifsg.own')
|
||||
|
|
|
@ -117,8 +117,9 @@ class LocationsController extends BaseController
|
|||
}
|
||||
|
||||
$this->log->info(
|
||||
'Updated location "{name}": {description} {dect} {map_url} {angels}',
|
||||
'Updated location "{name}" ({id}): {description} {dect} {map_url} {angels}',
|
||||
[
|
||||
'id' => $location->id,
|
||||
'name' => $location->name,
|
||||
'description' => $location->description,
|
||||
'dect' => $location->dect,
|
||||
|
|
Loading…
Reference in New Issue