goodie score visible with admin_user permission
This commit is contained in:
parent
1798ccda83
commit
0239bf1988
|
@ -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')) . '™:</b>',
|
'date' => '<b>' . ($goodie_tshirt ? __('T-shirt score') : __('Goodie score')) . '™:</b>',
|
||||||
'duration' => '<b>' . $tshirt_score . '</b>',
|
'duration' => '<b>' . $tshirt_score . '</b>',
|
||||||
'location' => '',
|
'location' => '',
|
||||||
'shift_info' => '',
|
'shift_info' => '',
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue