Skip to content

Commit

Permalink
enable recursive roles
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Dec 15, 2021

Verified

This commit was signed with the committer’s verified signature.
kisepichu きせ
1 parent 9f30797 commit a433c28
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/models/ContactTemplate.php
Original file line number Diff line number Diff line change
@@ -12,7 +12,9 @@
*/
class ContactTemplate extends BaseContactTemplate
{
use ActiveRecordAccessTrait;
use ActiveRecordAccessTrait {
find as traitFind;
}

/**
* @inheritdoc
@@ -66,4 +68,10 @@ public function rules()
];
return $rules;
}

public static function find()
{
self::$enableRecursiveRoles = true;
return self::traitFind();
}
}

0 comments on commit a433c28

Please sign in to comment.