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' => '', 'comment' => '',
'actions' => '', 'actions' => '',
]; ];
if ($goodie_enabled && ($its_me || $tshirt_admin)) { if ($goodie_enabled && ($its_me || $tshirt_admin || auth()->can('admin_user'))) {
$myshifts_table[] = [ $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>', 'duration' => '<b>' . $tshirt_score . '</b>',
'location' => '', 'location' => '',
'shift_info' => '', 'shift_info' => '',

View File

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