Skip to content

Commit 600aa87

Browse files
authored
Merge pull request #343 from lexxyungcarter/master
updated allPermissions() method
2 parents 01948b6 + c50de39 commit 600aa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/LaratrustUserTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public function allPermissions()
590590
return $role->permissions;
591591
});
592592

593-
return $this->permissions->merge($roles)->unique('name');
593+
return $this->permissions()->get()->merge($roles)->unique('name');
594594
}
595595

596596
/**

0 commit comments

Comments
 (0)