Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 99cafb3

Browse files
committed
Fix for JERSEY-2750: @RolesAllowed does not work in JettyHttpContainer
Change-Id: I8b897cf27221b9a63b9f5f2e1e52f7aabedc692a Signed-off-by: Jakub Podlesak <[email protected]>
1 parent 3f299c8 commit 99cafb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2013-2014 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2013-2015 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -211,7 +211,7 @@ private SecurityContext getSecurityContext(final Request request) {
211211

212212
@Override
213213
public boolean isUserInRole(final String role) {
214-
return false;
214+
return request.isUserInRole(role);
215215
}
216216

217217
@Override

0 commit comments

Comments
 (0)