Skip to content

Commit

Permalink
Merge pull request #343 from lexxyungcarter/master
Browse files Browse the repository at this point in the history
updated allPermissions() method
  • Loading branch information
santigarcor authored Apr 17, 2019
2 parents 01948b6 + c50de39 commit 600aa87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/LaratrustUserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public function allPermissions()
return $role->permissions;
});

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

/**
Expand Down

0 comments on commit 600aa87

Please sign in to comment.