Skip to content

Commit

Permalink
Improve container module settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Mar 14, 2024
1 parent d5c95f0 commit 4012959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/ConfigContainerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use humhub\modules\space\models\Space;
use humhub\modules\tasks\models\forms\ConfigureContainerForm;
use humhub\modules\content\components\ContentContainerController;
use humhub\modules\user\models\User;
use Yii;

class ConfigContainerController extends ContentContainerController
Expand All @@ -20,7 +21,7 @@ class ConfigContainerController extends ContentContainerController
*/
protected function getAccessRules()
{
return [[ContentContainerControllerAccess::RULE_USER_GROUP_ONLY => [Space::USERGROUP_ADMIN]]];
return [[ContentContainerControllerAccess::RULE_USER_GROUP_ONLY => [Space::USERGROUP_ADMIN, User::USERGROUP_SELF]]];
}

public function actionIndex()
Expand Down

0 comments on commit 4012959

Please sign in to comment.