goodie score visible with admin_user permission

This commit is contained in:
Xu 2023-12-29 23:06:16 +01:00 committed by Igor Scheller
parent 1798ccda83
commit 0239bf1988
2 changed files with 6 additions and 6 deletions

View File

@ -444,9 +444,9 @@ function User_view_myshifts(
'comment' => '',
'actions' => '',
];
if ($goodie_enabled && ($its_me || $tshirt_admin)) {
if ($goodie_enabled && ($its_me || $tshirt_admin || auth()->can('admin_user'))) {
$myshifts_table[] = [
'date' => '<b>' . ($goodie_tshirt ? __('Your T-shirt score') : __('Your goodie score')) . '&trade;:</b>',
'date' => '<b>' . ($goodie_tshirt ? __('T-shirt score') : __('Goodie score')) . '&trade;:</b>',
'duration' => '<b>' . $tshirt_score . '</b>',
'location' => '',
'shift_info' => '',

View File

@ -1178,8 +1178,8 @@ msgstr "Austragen"
msgid "Sum:"
msgstr "Summe:"
msgid "Your T-shirt score"
msgstr "Dein T-Shirt Score"
msgid "T-shirt score"
msgstr "T-Shirt Score"
msgid "Work log entry"
msgstr "Arbeitseinsatz"
@ -1342,8 +1342,8 @@ msgstr "Goodie"
msgid "goodie"
msgstr "Goodie"
msgid "Your goodie score"
msgstr "Dein Goodie Score"
msgid "Goodie score"
msgstr "Goodie Score"
msgid "Given goodies"
msgstr "Ausgegebene Goodies"