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 bb0afd1 commit d5c95f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions controllers/ConfigContainerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@

namespace humhub\modules\tasks\controllers;

use humhub\modules\content\components\ContentContainerControllerAccess;
use humhub\modules\space\models\Space;
use humhub\modules\tasks\models\forms\ConfigureContainerForm;
use humhub\modules\content\components\ContentContainerController;
use Yii;

class ConfigContainerController extends ContentContainerController
{
/**
* @inheritdoc
*/
protected function getAccessRules()
{
return [[ContentContainerControllerAccess::RULE_USER_GROUP_ONLY => [Space::USERGROUP_ADMIN]]];
}

public function actionIndex()
{
Expand Down

0 comments on commit d5c95f0

Please sign in to comment.