also hide your own design
This commit is contained in:
@@ -53,14 +53,19 @@ class CurrentUserDesignAction extends Action
|
|||||||
*
|
*
|
||||||
* @return nothing
|
* @return nothing
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showStylesheets()
|
function showStylesheets()
|
||||||
{
|
{
|
||||||
parent::showStylesheets();
|
parent::showStylesheets();
|
||||||
|
|
||||||
$design = $this->getDesign();
|
$user = common_current_user();
|
||||||
|
|
||||||
if (!empty($design)) {
|
if (empty($user) || $user->viewdesigns) {
|
||||||
$design->showCSS($this);
|
$design = $this->getDesign();
|
||||||
|
|
||||||
|
if (!empty($design)) {
|
||||||
|
$design->showCSS($this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,5 +89,4 @@ class CurrentUserDesignAction extends Action
|
|||||||
return $cur->getDesign();
|
return $cur->getDesign();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user