From 586de9f63b72f492256d088875a8473c7de2fcfc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 30 Jan 2018 18:04:35 +0100 Subject: [PATCH] Check permissions before displaying the "send mail" link --- wcfsetup/install/files/acp/templates/userList.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index 6c22233477..6f603a9143 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -114,7 +114,9 @@ {event name='dropdownItems'} {if $user->userID !== $__wcf->user->userID} -
  • {lang}wcf.acp.user.action.sendMail{/lang}
  • + {if $__wcf->session->getPermission('admin.user.canMailUser')} +
  • {lang}wcf.acp.user.action.sendMail{/lang}
  • + {/if} {if $user->accessible && $__wcf->session->getPermission('admin.user.canEditPassword')}
  • {lang}wcf.acp.user.action.sendNewPassword{/lang}
  • -- 2.20.1