From a9c00a26b8b3214598f409794e8987e06e53bf04 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 14 Nov 2015 13:05:26 +0100 Subject: [PATCH] Add permission check for attachment's user edit link --- wcfsetup/install/files/acp/templates/attachmentList.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/attachmentList.tpl b/wcfsetup/install/files/acp/templates/attachmentList.tpl index 9aacb25e1e..93b941b0c2 100644 --- a/wcfsetup/install/files/acp/templates/attachmentList.tpl +++ b/wcfsetup/install/files/acp/templates/attachmentList.tpl @@ -115,7 +115,7 @@

{$attachment->filename|tableWordwrap}

-

{if $attachment->userID}{$attachment->username}{else}{lang}wcf.user.guest{/lang}{/if}

+

{if $attachment->userID}{if $__wcf->session->getPermission('admin.user.canEditUser')}{$attachment->username}{else}{$attachment->username}{/if}{else}{lang}wcf.user.guest{/lang}{/if}

{if $attachment->getContainerObject()}

{$attachment->getContainerObject()->getTitle()|tableWordwrap}

{/if}
-- 2.20.1