diff --git a/README.md b/README.md index e70cc5d..307fc23 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Now you should be able to see the page in your `Nav` widget in the frontend of y #### Traits -We use the `\dmstr\db\traits\ActiveRecordAccessTrait` to have a check access behavior on active record level +We use the `\dmstr\activeRecordPermissions\ActiveRecordAccessTrait` to have a check access behavior on active record level - Owner Access - Read Access diff --git a/composer.json b/composer.json index 4b63961..dc4010a 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "rmrevin/yii2-fontawesome": "~2.9", "dmstr/yii2-json-editor": "^0.3.5", "dmstr/yii2-web": "^0.4.0", - "dmstr/yii2-db": "^1.0.0", + "dmstr/yii2-active-record-permissions.git": "^1.0.0", "dmstr/yii2-backend-module": "^1.0.0-beta12", "bedezign/yii2-audit": "^1.1", "mikehaertl/php-shellcommand": "^1.2.4", diff --git a/models/BaseTree.php b/models/BaseTree.php index a873c98..8ab9420 100644 --- a/models/BaseTree.php +++ b/models/BaseTree.php @@ -9,7 +9,7 @@ namespace dmstr\modules\pages\models; -use dmstr\db\traits\ActiveRecordAccessTrait; +use dmstr\activeRecordPermissions\ActiveRecordAccessTrait; use dmstr\modules\pages\Module as PagesModule; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; diff --git a/tests/codeception/unit/ModelTest.php b/tests/codeception/unit/ModelTest.php index 3ccf704..cb8229a 100644 --- a/tests/codeception/unit/ModelTest.php +++ b/tests/codeception/unit/ModelTest.php @@ -132,7 +132,7 @@ public function testRemoveRootNodeWithChildren() /** * Test find records only for current access domain, feature from - * \dmstr\db\traits\ActiveRecordAccessTrait + * \dmstr\activeRecordPermissions\ActiveRecordAccessTrait */ public function testAccessDomainCheckOnFind() { diff --git a/views/treeview/_form.php b/views/treeview/_form.php index a6d9a4b..179e60e 100755 --- a/views/treeview/_form.php +++ b/views/treeview/_form.php @@ -313,7 +313,7 @@