File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function () {
46
46
// more permissive permission wins
47
47
// if user has multiple roles we keep
48
48
// true values.
49
- foreach ($ this ->roles as $ role ) {
49
+ foreach ($ this ->roles ()-> get () as $ role ) {
50
50
foreach ($ role ->getPermissions () as $ slug => $ array ) {
51
51
if ( array_key_exists ($ slug , $ permissions ) ) {
52
52
foreach ($ array as $ clearance => $ value ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ trait HasPermissionInheritance
15
15
public function getPermissionsInherited ()
16
16
{
17
17
$ rights = [];
18
- $ permissions = $ this ->permissions ;
18
+ $ permissions = $ this ->permissions ()-> get () ;
19
19
20
20
// ntfs permissions
21
21
// determine if ntfs is enabled
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function getRoles()
35
35
'acl.getRolesById_ ' .$ this ->id ,
36
36
config ('acl.cacheMinutes ' ),
37
37
function () {
38
- return $ this ->roles ;
38
+ return $ this ->roles ()-> get () ;
39
39
}
40
40
);
41
41
You can’t perform that action at this time.
0 commit comments