1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-03 06:37:27 +02:00

Document method 'getRolesForUserById' from class 'Administration'

This commit is contained in:
Marco
2018-03-10 03:10:17 +01:00
parent a2be4c61ee
commit 42a8c1616c

View File

@@ -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