kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject kylin git commit: KYLIN-3214
Date Tue, 06 Feb 2018 12:55:46 GMT
Repository: kylin
Updated Branches:
  refs/heads/2.3.x 78195797e -> 618e2625c


KYLIN-3214

Signed-off-by: shaofengshi <shaofengshi@apache.org>


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

Branch: refs/heads/2.3.x
Commit: 618e2625c78f4eb67179522d35aec0d1be2a027d
Parents: 7819579
Author: peng.jianhua <peng.jianhua@zte.com.cn>
Authored: Tue Jan 30 16:56:42 2018 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Tue Feb 6 20:55:40 2018 +0800

----------------------------------------------------------------------
 .../apache/kylin/rest/controller/AccessController.java    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/618e2625/server-base/src/main/java/org/apache/kylin/rest/controller/AccessController.java
----------------------------------------------------------------------
diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller/AccessController.java
b/server-base/src/main/java/org/apache/kylin/rest/controller/AccessController.java
index 3b619b8..7935f77 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/controller/AccessController.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/controller/AccessController.java
@@ -36,6 +36,7 @@ import org.apache.kylin.rest.service.ProjectService;
 import org.apache.kylin.rest.service.TableACLService;
 import org.apache.kylin.rest.service.UserService;
 import org.apache.kylin.rest.util.AclPermissionUtil;
+import org.springframework.beans.factory.InitializingBean;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.security.acls.domain.PrincipalSid;
@@ -56,7 +57,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
  */
 @Controller
 @RequestMapping(value = "/access")
-public class AccessController extends BasicController {
+public class AccessController extends BasicController implements InitializingBean {
 
     @Autowired
     @Qualifier("accessService")
@@ -74,6 +75,13 @@ public class AccessController extends BasicController {
     @Qualifier("userService")
     private UserService userService;
 
+    
+    @Override
+    public void afterPropertiesSet() throws Exception {
+        // init ExternalAclProvider
+        ExternalAclProvider.getInstance();
+    }
+    
     /**
      * Get current user's permission in the project
      */


Mime
View raw message