]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/ownerdesignaction.php
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
[quix0rs-gnu-social.git] / lib / ownerdesignaction.php
index 424474f4298d75b69a2cfc5c3dd487641331778f..785b8a93d3aad2a0a3962e324516d9d7ef726d1e 100644 (file)
@@ -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);
+             }
+         }
      }
 
     /**