Add permission check for attachment's user edit link
authorMatthias Schmidt <gravatronics@live.com>
Sat, 14 Nov 2015 12:05:26 +0000 (13:05 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 14 Nov 2015 12:05:26 +0000 (13:05 +0100)
wcfsetup/install/files/acp/templates/attachmentList.tpl

index 9aacb25e1eda5d3342b29b485390761856024b21..93b941b0c2dd87fe19f17f3d72390046b4a8196e 100644 (file)
                                                                
                                                                <div>
                                                                        <p><a href="{link controller='Attachment' id=$attachment->attachmentID}{/link}">{$attachment->filename|tableWordwrap}</a></p>
-                                                                       <p><small>{if $attachment->userID}<a href="{link controller='UserEdit' id=$attachment->userID}{/link}">{$attachment->username}</a>{else}{lang}wcf.user.guest{/lang}{/if}</small></p>
+                                                                       <p><small>{if $attachment->userID}{if $__wcf->session->getPermission('admin.user.canEditUser')}<a href="{link controller='UserEdit' id=$attachment->userID}{/link}">{$attachment->username}</a>{else}{$attachment->username}{/if}{else}{lang}wcf.user.guest{/lang}{/if}</small></p>
                                                                        {if $attachment->getContainerObject()}<p><small><a href="{$attachment->getContainerObject()->getLink()}">{$attachment->getContainerObject()->getTitle()|tableWordwrap}</a></small></p>{/if}
                                                                </div>
                                                        </div>