From 4012959e286077690cc08eef38a371d89aaaa28a Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Thu, 14 Mar 2024 15:45:49 +0100 Subject: [PATCH] Improve container module settings --- controllers/ConfigContainerController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/ConfigContainerController.php b/controllers/ConfigContainerController.php index b9df6456..249e40c8 100644 --- a/controllers/ConfigContainerController.php +++ b/controllers/ConfigContainerController.php @@ -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 @@ -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()