Should send "403 - Forbidden" if user not found.
This commit is contained in:
1 parent
a19b1af6f7
commit
bff58e38a3
1 file changed
+2
@@ -113,6 +113,8 @@ public class PermissionList extends AuthenticatingHttpServlet {
|
||||
|
||||
// Get specific user
|
||||
User user = users.getUser(username);
|
||||
if (user == null)
|
||||
throw new GuacamoleSecurityException("No such user.");
|
||||
|
||||
// Write XML content type
|
||||
response.setHeader("Content-Type", "text/xml");
|
||||
|
||||
Reference in new issue
Block a user