summaryrefslogtreecommitdiff
path: root/lib/ownerdesignaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-05 14:33:12 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-05 14:33:12 -0400
commite6c54a59e140c9ee3b6244dbcb92f9ca9d065887 (patch)
tree0026686ac86ed79d778682c7e459fedd698bbbb9 /lib/ownerdesignaction.php
parentd4db9d83d84859d7492438a215c8d7a4baf3ef68 (diff)
set/get viewdesigns flag and use it
Diffstat (limited to 'lib/ownerdesignaction.php')
-rw-r--r--lib/ownerdesignaction.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ownerdesignaction.php b/lib/ownerdesignaction.php
index 424474f42..785b8a93d 100644
--- a/lib/ownerdesignaction.php
+++ b/lib/ownerdesignaction.php
@@ -61,11 +61,15 @@ class OwnerDesignAction extends Action {
{
parent::showStylesheets();
- $design = $this->getDesign();
+ $user = common_current_user();
- if (!empty($design)) {
- $design->showCSS($this);
- }
+ if (empty($user) || $user->viewdesigns) {
+ $design = $this->getDesign();
+
+ if (!empty($design)) {
+ $design->showCSS($this);
+ }
+ }
}
/**