Fixed dead link to acp in user profile
authorMarcel Werk <burntime@woltlab.com>
Sun, 1 Jan 2017 15:07:34 +0000 (16:07 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 1 Jan 2017 15:07:34 +0000 (16:07 +0100)
com.woltlab.wcf/templates/user.tpl

index 7d37a4fe6951e6c3d76dbb39ac5b393b35b9bf42..887efa3c751f94868d1b3ca7148a864e70014246 100644 (file)
                                                                        {if $__wcf->session->getPermission('admin.user.canDisableSignature')}<li><a href="#" class="jsButtonUserDisableSignature">{lang}wcf.user.{if $user->disableSignature}enable{else}disable{/if}Signature{/lang}</a></li>{/if}
                                                                        {if $__wcf->session->getPermission('admin.user.canEnableUser')}<li><a href="#" class="jsButtonUserEnable">{lang}wcf.acp.user.{if $user->activationCode}enable{else}disable{/if}{/lang}</a></li>{/if}
                                                                        
-                                                                       <li><a href="{link controller='UserEdit' object=$user isACP=true}{/link}" class="jsUserInlineEditor">{lang}wcf.user.edit{/lang}</a></li>
+                                                                       {if $__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser')}<li><a href="{link controller='UserEdit' object=$user isACP=true}{/link}" class="jsUserInlineEditor">{lang}wcf.user.edit{/lang}</a></li>{/if}
                                                                {/if}
                                                        {/content}
                                                </ul>