diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 652d4ff5..4f304479 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -28,6 +28,7 @@ function admin_user()
$goodie_enabled = $goodie !== GoodieType::None;
$goodie_tshirt = $goodie === GoodieType::Tshirt;
$user_info_edit = auth()->can('user.info.edit');
+ $user_edit_shirt = auth()->can('user.edit.shirt');
if (!$request->has('id')) {
throw_redirect(users_link());
@@ -42,7 +43,7 @@ function admin_user()
}
$html .= __('Here you can change the user entry. Under the item \'Arrived\' the angel is marked as present, a yes at Active means that the angel was active.');
- if ($goodie_enabled) {
+ if ($goodie_enabled && $user_edit_shirt) {
if ($goodie_tshirt) {
$html .= ' ' . __('If the angel is active, it can claim a T-shirt. If T-shirt is set to \'Yes\', the angel already got their T-shirt.');
} else {
@@ -85,7 +86,7 @@ function admin_user()
. ''
. '' . "\n";
}
- if ($goodie_tshirt) {
+ if ($goodie_tshirt && $user_edit_shirt) {
$html .= '