Skip to content

Commit

Permalink
KYLIN-3214
Browse files Browse the repository at this point in the history
Signed-off-by: shaofengshi <shaofengshi@apache.org>
  • Loading branch information
pengjianhua authored and shaofengshi committed Feb 6, 2018
1 parent ebfce48 commit eac03cd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
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;
Expand All @@ -56,7 +57,7 @@
*/
@Controller
@RequestMapping(value = "/access")
public class AccessController extends BasicController {
public class AccessController extends BasicController implements InitializingBean {

@Autowired
@Qualifier("accessService")
Expand All @@ -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
*/
Expand Down

0 comments on commit eac03cd

Please sign in to comment.