summaryrefslogtreecommitdiff
path: root/lib/ownerdesignaction.php
diff options
context:
space:
mode:
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);
+ }
+ }
}
/**