]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
also hide your own design
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 18:37:37 +0000 (14:37 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 18:37:37 +0000 (14:37 -0400)
lib/currentuserdesignaction.php

index 7c2520cf67cbf292334a821dd952be1caa99da15..4c7e15a8b7a4dd6c8f17d418847944508c0b4046 100644 (file)
@@ -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();
     }
 
-
 }