mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-03 22:57:27 +02:00
Document method 'getRolesForUserById' from class 'Administration'
This commit is contained in:
@@ -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)
|
#### Impersonating users (logging in as user)
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
Reference in New Issue
Block a user