shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdem...@apache.org
Subject [02/20] shiro git commit: SHIRO-301 - Call permissionResolver directly in AuthorizingRealm
Date Fri, 14 Oct 2016 19:36:05 GMT
SHIRO-301 - Call permissionResolver directly in AuthorizingRealm

It was already available in the method


Project: http://git-wip-us.apache.org/repos/asf/shiro/repo
Commit: http://git-wip-us.apache.org/repos/asf/shiro/commit/fbd69702
Tree: http://git-wip-us.apache.org/repos/asf/shiro/tree/fbd69702
Diff: http://git-wip-us.apache.org/repos/asf/shiro/diff/fbd69702

Branch: refs/heads/1.4.x
Commit: fbd69702387fce0be93a5aae90b7a7f21c09718d
Parents: ea2b483
Author: Brian Demers <bdemers@apache.org>
Authored: Wed Oct 5 14:48:51 2016 -0400
Committer: Brian Demers <bdemers@apache.org>
Committed: Fri Oct 14 15:15:50 2016 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/shiro/blob/fbd69702/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
index 11c5f85..766aa94 100644
--- a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
+++ b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
@@ -431,7 +431,7 @@ public abstract class AuthorizingRealm extends AuthenticatingRealm
         if (resolver != null && !CollectionUtils.isEmpty(stringPerms)) {
             perms = new LinkedHashSet<Permission>(stringPerms.size());
             for (String strPermission : stringPerms) {
-                Permission permission = getPermissionResolver().resolvePermission(strPermission);
+                Permission permission = resolver.resolvePermission(strPermission);
                 perms.add(permission);
             }
         }


Mime
View raw message