From bd2994eea7371e49f7c6f00f314aab6c6f1dae93 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 4 Sep 2020 23:52:22 +0200 Subject: [PATCH] Admin arrive: Show button on user pages --- includes/view/User_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 01b8758a..65cbced2 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -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),