summaryrefslogtreecommitdiff
path: root/lib/currentuserdesignaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-05 14:37:37 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-05 14:37:37 -0400
commit5875c02cbba9c595e6fb73f788776d23905694d5 (patch)
treee3f1145e99e30824442c60940722ac4ce4c4e977 /lib/currentuserdesignaction.php
parente6c54a59e140c9ee3b6244dbcb92f9ca9d065887 (diff)
also hide your own design
Diffstat (limited to 'lib/currentuserdesignaction.php')
-rw-r--r--lib/currentuserdesignaction.php12
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();
}
-
}