From d012bdabde712fbb600408d4a834cba399d4015d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 15 Jan 2009 22:25:26 +0000 Subject: [PATCH] Show NoticeForm only if logged in --- lib/action.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/action.php b/lib/action.php index d106ba3666..9df39e9a82 100644 --- a/lib/action.php +++ b/lib/action.php @@ -208,7 +208,11 @@ class Action extends HTMLOutputter // lawsuit $this->showLogo(); $this->showPrimaryNav(); $this->showSiteNotice(); - $this->showNoticeForm(); + if (common_logged_in()) { + $this->showNoticeForm(); + } else { + $this->showAnonymousMessage(); + } $this->elementEnd('div'); } @@ -285,6 +289,11 @@ class Action extends HTMLOutputter // lawsuit $notice_form->show(); } + function showAnonymousMessage() + { + // needs to be defined by the class + } + function showCore() { $this->elementStart('div', array('id' => 'core')); -- 2.39.5