Fixed moderation item always visible
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 11:38:57 +0000 (13:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 11:38:57 +0000 (13:38 +0200)
com.woltlab.wcf/templates/pageMenuMobile.tpl

index 63fdc3cbfa19e4f0d983c2d03e3c85285a242cba..04f22c351fafb9c77687132600ebed39698918fd 100644 (file)
                                        <span class="menuOverlayItemTitle">{lang}wcf.user.notification.notifications{/lang}</span>
                                </a>
                        </li>
-                       <li class="menuOverlayItem" data-more="com.woltlab.wcf.moderation">
-                               <a href="#" class="menuOverlayItemLink box24">
-                                       <span class="icon icon24 fa-exclamation-triangle"></span>
-                                       <span class="menuOverlayItemTitle">{lang}wcf.moderation.moderation{/lang}</span>
-                               </a>
-                       </li>
+                       {if $__wcf->user->userID && $__wcf->session->getPermission('mod.general.canUseModeration')}
+                               <li class="menuOverlayItem" data-more="com.woltlab.wcf.moderation">
+                                       <a href="#" class="menuOverlayItemLink box24">
+                                               <span class="icon icon24 fa-exclamation-triangle"></span>
+                                               <span class="menuOverlayItemTitle">{lang}wcf.moderation.moderation{/lang}</span>
+                                       </a>
+                               </li>
+                       {/if}
                        
                        {event name='userMenuItems'}