Admin arrive: Show button on user pages

This commit is contained in:
Igor Scheller 2020-09-04 23:52:22 +02:00 committed by msquare
parent c0c1dab711
commit bd2994eea7
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ function User_view(
user_driver_license_edit_link($user_source),
glyph('road') . __('driving license')
) : '',
($admin_user_privilege && !$user_source->state->arrived) ?
(($admin_user_privilege || $auth->can('admin_arrive')) && !$user_source->state->arrived) ?
form([
form_hidden('action', 'arrived'),
form_hidden('user', $user_source->id),