From 42a8c1616cd536a858fa370d2a00ec07ec19baed Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 10 Mar 2018 03:10:17 +0100 Subject: [PATCH] Document method 'getRolesForUserById' from class 'Administration' --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5d12d57..b1c663c 100644 --- a/README.md +++ b/README.md @@ -915,6 +915,12 @@ catch (\Delight\Auth\UnknownIdException $e) { } ``` +Alternatively, you can get a list of all the roles that have been assigned to the user: + +```php +$auth->admin()->getRolesForUserById($userId); +``` + #### Impersonating users (logging in as user) ```php