directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cp...@apache.org
Subject [3/7] directory-fortress-core git commit: added check access
Date Sat, 20 Feb 2016 14:52:03 GMT
added check access


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/e17a16b2
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/e17a16b2
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/e17a16b2

Branch: refs/heads/master
Commit: e17a16b242fa695e7a869c23f388fda7acb07d9e
Parents: 07a56cc
Author: clp207 <clp207@psu.edu>
Authored: Fri Feb 19 13:12:07 2016 -0500
Committer: clp207 <clp207@psu.edu>
Committed: Fri Feb 19 13:12:07 2016 -0500

----------------------------------------------------------------------
 ldap/setup/DelegatedAdminManagerLoad.xml                            | 1 +
 .../java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/e17a16b2/ldap/setup/DelegatedAdminManagerLoad.xml
----------------------------------------------------------------------
diff --git a/ldap/setup/DelegatedAdminManagerLoad.xml b/ldap/setup/DelegatedAdminManagerLoad.xml
index 5c0968e..1d117dc 100644
--- a/ldap/setup/DelegatedAdminManagerLoad.xml
+++ b/ldap/setup/DelegatedAdminManagerLoad.xml
@@ -290,6 +290,7 @@
                 <permop objName="org.apache.directory.fortress.core.impl.GroupMgrImpl"
opName="assign" admin="true"/>
                 <permop objName="org.apache.directory.fortress.core.impl.GroupMgrImpl"
opName="deassign" admin="true"/>
             	
+            	<permop objName="org.apache.directory.fortress.core.impl.AccessMgrImpl" opName="checkAccess"
admin="true"/>
             	<permop objName="org.apache.directory.fortress.core.impl.AccessMgrImpl" opName="sessionPermissions"
admin="true"/>
             	<permop objName="org.apache.directory.fortress.core.impl.AccessMgrImpl" opName="sessionRoles"
admin="true"/>
             	<permop objName="org.apache.directory.fortress.core.impl.AccessMgrImpl" opName="authorizedRoles"
admin="true"/>

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/e17a16b2/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
index e4d250b..5b390c9 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
@@ -135,6 +135,7 @@ public class AccessMgrImpl extends Manageable implements AccessMgr
             getFullMethodName( CLS_NM, methodName ) );
         VUtil.validateConstraints( session, VUtil.ConstraintType.USER, false );
         VUtil.validateConstraints( session, VUtil.ConstraintType.ROLE, false );
+        setEntitySession(CLS_NM, methodName, session);
         return permP.checkPermission( session, perm );
     }
 


Mime
View raw message