From: Evan Prodromou Date: Sun, 5 Jul 2009 18:37:37 +0000 (-0400) Subject: also hide your own design X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5875c02cbba9c595e6fb73f788776d23905694d5;p=quix0rs-gnu-social.git also hide your own design --- diff --git a/lib/currentuserdesignaction.php b/lib/currentuserdesignaction.php index 7c2520cf67..4c7e15a8b7 100644 --- a/lib/currentuserdesignaction.php +++ b/lib/currentuserdesignaction.php @@ -53,14 +53,19 @@ class CurrentUserDesignAction extends Action * * @return nothing */ + function showStylesheets() { parent::showStylesheets(); - $design = $this->getDesign(); + $user = common_current_user(); + + if (empty($user) || $user->viewdesigns) { + $design = $this->getDesign(); - if (!empty($design)) { - $design->showCSS($this); + if (!empty($design)) { + $design->showCSS($this); + } } } @@ -84,5 +89,4 @@ class CurrentUserDesignAction extends Action return $cur->getDesign(); } - }