shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdem...@apache.org
Subject [08/23] shiro git commit: SHIRO-301 - Call permissionResolver directly in AuthorizingRealm
Date Tue, 18 Oct 2016 18:56:42 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/68d1d93e
Tree: http://git-wip-us.apache.org/repos/asf/shiro/tree/68d1d93e
Diff: http://git-wip-us.apache.org/repos/asf/shiro/diff/68d1d93e

Branch: refs/heads/master
Commit: 68d1d93edab61c34226b7165d97b75067d0c192b
Parents: 57b2ae2
Author: Brian Demers <bdemers@apache.org>
Authored: Wed Oct 5 14:48:51 2016 -0400
Committer: Brian Demers <bdemers@apache.org>
Committed: Tue Oct 18 12:07:03 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/68d1d93e/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 7891527..254472f 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