mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix updating of user visibility (#5851)
This commit is contained in:
parent
aa9bb12b16
commit
cd660ef242
@ -39,7 +39,7 @@ class AccountSettings extends Model
|
|||||||
[['timeZone'], 'in', 'range' => \DateTimeZone::listIdentifiers()],
|
[['timeZone'], 'in', 'range' => \DateTimeZone::listIdentifiers()],
|
||||||
['language', 'in', 'range' => array_keys(Yii::$app->i18n->getAllowedLanguages())],
|
['language', 'in', 'range' => array_keys(Yii::$app->i18n->getAllowedLanguages())],
|
||||||
['visibility', 'in', 'range' => array_keys($this->getVisibilityOptions()),
|
['visibility', 'in', 'range' => array_keys($this->getVisibilityOptions()),
|
||||||
'when' => function (self $model) {return $model->isVisibilityEditable();}],
|
'when' => function (self $model) {return $model->isVisibilityViewable() && $model->isVisibilityEditable();}],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user