Fix: Bypass AccessControl behavior in installer

This commit is contained in:
Lucas Bartholemy 2017-07-19 09:45:47 +02:00
parent 8228eae7ef
commit e7ee4ac772
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,11 @@ class AccessControl extends \yii\base\ActionFilter
*/
public function beforeAction($action)
{
// Bypass when not installed for installer
if (empty(Yii::$app->params['installed']) && Yii::$app->controller->module != null && Yii::$app->controller->module->id == 'installer') {
return true;
}
$identity = Yii::$app->user->getIdentity();
if ($identity != null && !$identity->isActive()) {

View File

@ -15,6 +15,7 @@ HumHub Change Log
- Enh: Automatically set space default visibility in `Content::setContainer()`
- Fix: Fixed ContentContainerSettingManager caching issue if space/user id are equal
- Enh: Use of select2 dropdown for time zone selections
- Fix: Bypass AccessControl behavior in installer
1.2.1 (June 17, 2017)
- Fix: Invite error in french language