lock
lock copied to clipboard
Expose permissions collection through all method
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