Skip to content

Commit

Permalink
优化修正上次提交的一些小问题
Browse files Browse the repository at this point in the history
Signed-off-by: michael.z <mail@zhangxiao.org>
  • Loading branch information
michaelzx committed Mar 12, 2015
1 parent d7c6cae commit 95fc8a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/cnvp/paladin/core/appConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.jfinal.plugin.druid.DruidPlugin;
import com.jfinal.plugin.ehcache.EhCachePlugin;
public class appConfig extends JFinalConfig {

private Routes routes;
public static DruidPlugin dp;
/**
* 配置常量
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ public class AuthorizationFilter4Shiro extends AuthorizationFilter {

@Override
protected boolean isAccessAllowed(ServletRequest request,ServletResponse response, Object mappedValue) throws Exception {
//-----------------登陆认证------------------
HttpServletRequest req = (HttpServletRequest) request;
Subject currentUser = getSubject(request, response);
if (!currentUser.isAuthenticated())
return false;
//-----------------权限认证-------------
SysUser user = (SysUser) currentUser.getPrincipal();
// 根据ak读取权限代码
Map<String,String> ak_coderoutes = SysRes.dao.getAk_CodeRoutes();
Expand Down

0 comments on commit 95fc8a4

Please sign in to comment.