Skip to content

Commit a433c28

Browse files
committed
enable recursive roles
1 parent 9f30797 commit a433c28

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/models/ContactTemplate.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
*/
1313
class ContactTemplate extends BaseContactTemplate
1414
{
15-
use ActiveRecordAccessTrait;
15+
use ActiveRecordAccessTrait {
16+
find as traitFind;
17+
}
1618

1719
/**
1820
* @inheritdoc
@@ -66,4 +68,10 @@ public function rules()
6668
];
6769
return $rules;
6870
}
71+
72+
public static function find()
73+
{
74+
self::$enableRecursiveRoles = true;
75+
return self::traitFind();
76+
}
6977
}

0 commit comments

Comments
 (0)