From 35e7aca4439d96b6d7c5acbe486247b35d301762 Mon Sep 17 00:00:00 2001 From: Elias Luhr Date: Mon, 29 Jun 2020 13:05:01 +0200 Subject: [PATCH] enable recursive role check for pages --- composer.json | 2 +- models/Tree.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 65bd96a..1c1514e 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "rmrevin/yii2-fontawesome": "~2.9", "dmstr/yii2-json-editor": "^1.0.0", "dmstr/yii2-web": "^0.4.0", - "dmstr/yii2-active-record-permissions": "^1.0.0", + "dmstr/yii2-active-record-permissions": "^1.1.0", "dmstr/yii2-backend-module": "^2.0.0", "bedezign/yii2-audit": "^1.1", "mikehaertl/php-shellcommand": "^1.2.4", diff --git a/models/Tree.php b/models/Tree.php index a0feb06..005dea6 100755 --- a/models/Tree.php +++ b/models/Tree.php @@ -56,6 +56,8 @@ class Tree extends BaseTree { + public static $enableRecursiveRoles = true; + /** * @inheritdoc */