also hide your own design
This commit is contained in:
parent
e6c54a59e1
commit
5875c02cbb
|
@ -53,14 +53,19 @@ class CurrentUserDesignAction extends Action
|
|||
*
|
||||
* @return nothing
|
||||
*/
|
||||
|
||||
function showStylesheets()
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,5 +89,4 @@ class CurrentUserDesignAction extends Action
|
|||
return $cur->getDesign();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user