mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
output Roles in auth_test script (#15587)
This commit is contained in:
@ -126,6 +126,9 @@ try {
|
||||
if (method_exists($authorizer, 'getGroupList')) {
|
||||
echo 'Groups: ' . implode('; ', $authorizer->getGroupList()) . PHP_EOL;
|
||||
}
|
||||
if (method_exists($authorizer, 'getRoles')) {
|
||||
echo 'Roles: ' . implode('; ', $authorizer->getRoles($test_username)) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo 'Error: ' . get_class($e) . " thrown!\n";
|
||||
|
Reference in New Issue
Block a user