From 51547f2cb390465dcd57915c53f93cfd6bd0e798 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 10 Sep 2013 21:21:21 +0200 Subject: [PATCH] Disabling user panel JS in offline mode for unprivileged users --- com.woltlab.wcf/templates/searchArea.tpl | 18 ++++---- com.woltlab.wcf/templates/userPanel.tpl | 58 +++++++++++++----------- 2 files changed, 41 insertions(+), 35 deletions(-) diff --git a/com.woltlab.wcf/templates/searchArea.tpl b/com.woltlab.wcf/templates/searchArea.tpl index dc5f2944e7..96c18e6d23 100644 --- a/com.woltlab.wcf/templates/searchArea.tpl +++ b/com.woltlab.wcf/templates/searchArea.tpl @@ -25,11 +25,13 @@ - - \ No newline at end of file +{if !OFFLINE || $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')} + + +{/if} \ No newline at end of file diff --git a/com.woltlab.wcf/templates/userPanel.tpl b/com.woltlab.wcf/templates/userPanel.tpl index 9fbef48689..c1ef7f3844 100644 --- a/com.woltlab.wcf/templates/userPanel.tpl +++ b/com.woltlab.wcf/templates/userPanel.tpl @@ -31,21 +31,23 @@ {if !$__hideUserMenu|isset}
  • {lang}wcf.user.notification.notifications{/lang}{if $__wcf->getUserNotificationHandler()->getNotificationCount()} {#$__wcf->getUserNotificationHandler()->getNotificationCount()}{/if} - + //]]> + + {/if}
  • {/if} {else} @@ -183,20 +185,22 @@ {lang}wcf.moderation.moderation{/lang} {if $__wcf->getModerationQueueManager()->getOutstandingModerationCount()}{#$__wcf->getModerationQueueManager()->getOutstandingModerationCount()}{/if} - - + + //]]> + + {/if} {/if} -- 2.20.1