diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-05 14:37:37 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-05 14:37:37 -0400 |
commit | 5875c02cbba9c595e6fb73f788776d23905694d5 (patch) | |
tree | e3f1145e99e30824442c60940722ac4ce4c4e977 /lib | |
parent | e6c54a59e140c9ee3b6244dbcb92f9ca9d065887 (diff) |
also hide your own design
Diffstat (limited to 'lib')
-rw-r--r-- | lib/currentuserdesignaction.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/currentuserdesignaction.php b/lib/currentuserdesignaction.php index 7c2520cf6..4c7e15a8b 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(); } - } |