lock icon indicating copy to clipboard operation
lock copied to clipboard

Expose permissions collection through all method

Open njohns-grovo opened this issue 10 years ago • 0 comments

Good Evening!

Recently I've had the need to fetch all permissions of a caller for display on a table, the only way to accomplish this at the moment is to explicitly check $action on a caller. The alternative is to code around this library which is not wonderful.

This feature exposes a collection of Permission objects. Useful in situations where you need to display tables of permissions a user is allowed or denied.

The underlying getPermissions method is exposed as a public function "all".

Take care, Nicholas

njohns-grovo avatar Oct 08 '15 03:10 njohns-grovo