diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-11 07:30:26 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-11 07:30:26 -0700 |
commit | 55415652382d1f3ae77123d197e01d95da83041e (patch) | |
tree | 449ee7e9aebe184583f099e49a7194eb5bbf8543 /lib/ownerdesignaction.php | |
parent | bfae5489cb629331f2936b2bf1066adb3976bce1 (diff) | |
parent | 7621e0e38467349a89f71e814941932fbacecfa1 (diff) |
Merge branch 'testing'
Diffstat (limited to 'lib/ownerdesignaction.php')
-rw-r--r-- | lib/ownerdesignaction.php | 12 |
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); + } + } } /** |