HttpServletResponse response) throws IOException, ServletException {
boolean hasAdminRight = hasAdminRight(request);
request.setAttribute("hasAdminRight", hasAdminRight);
Usr sessionUsr = getUsrFromSession(request);
if (!hasAdminRight) {
request.setAttribute("entity", sessionUsr);
}
//查看用户权限
String usr = request.getParameter("usr");
if(StringUtils.isBlank(usr)){
usr = sessionUsr.getUsr();
}
boolean hasUsr = StringUtils.isNotBlank(usr);
if (hasUsr) {
List<PjAuth> auths = this.usrService.getAuths(usr);
request.setAttribute("auths", auths);