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 2015/04/12 05:22:10 UTC

svn commit: r1672976 - /shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java

Author: lhazlewood
Date: Sun Apr 12 03:22:10 2015
New Revision: 1672976

URL: http://svn.apache.org/r1672976
Log:
SHIRO-332: applied visibility changes per issue

Modified:
    shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java

Modified: shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
URL: http://svn.apache.org/viewvc/shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java?rev=1672976&r1=1672975&r2=1672976&view=diff
==============================================================================
--- shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java (original)
+++ shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java Sun Apr 12 03:22:10 2015
@@ -398,7 +398,8 @@ public abstract class AuthorizingRealm e
      */
     protected abstract AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals);
 
-    private Collection<Permission> getPermissions(AuthorizationInfo info) {
+    //changed visibility from private to protected for SHIRO-332
+    protected Collection<Permission> getPermissions(AuthorizationInfo info) {
         Set<Permission> permissions = new HashSet<Permission>();
 
         if (info != null) {
@@ -462,7 +463,8 @@ public abstract class AuthorizingRealm e
         return isPermitted(permission, info);
     }
 
-    private boolean isPermitted(Permission permission, AuthorizationInfo info) {
+    //changed visibility from private to protected for SHIRO-332
+    protected boolean isPermitted(Permission permission, AuthorizationInfo info) {
         Collection<Permission> perms = getPermissions(info);
         if (perms != null && !perms.isEmpty()) {
             for (Permission perm : perms) {