You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2011/03/05 23:53:36 UTC
svn commit: r1078386 -
/shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java
Author: lhazlewood
Date: Sat Mar 5 22:53:36 2011
New Revision: 1078386
URL: http://svn.apache.org/viewvc?rev=1078386&view=rev
Log:
SHIRO-235: implemented fix
Modified:
shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java
Modified: shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java
URL: http://svn.apache.org/viewvc/shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java?rev=1078386&r1=1078385&r2=1078386&view=diff
==============================================================================
--- shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java (original)
+++ shiro/trunk/core/src/main/java/org/apache/shiro/subject/support/DelegatingSubject.java Sat Mar 5 22:53:36 2011
@@ -235,6 +235,8 @@ public class DelegatingSubject implement
}
public void checkRoles(String... roleIdentifiers) throws AuthorizationException {
+ assertAuthzCheckPossible();
+ securityManager.checkRoles(getPrincipals(), roleIdentifiers);
}
public void checkRoles(Collection<String> roles) throws AuthorizationException {