mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 05:19:00 +08:00
✨ Introducing new features. #3711 ureport2 支持preview 数据不二次登录
This commit is contained in:
1 parent
d07022c89a
commit
ca7bb696b3
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo
|
||||
if (StrUtil.isBlank(menuIds)) {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
List<SysRoleMenu> roleMenuList = Arrays.stream(menuIds.split(",")).map(menuId -> {
|
||||
List<SysRoleMenu> roleMenuList = Arrays.stream(menuIds.split(StrUtil.COMMA)).map(menuId -> {
|
||||
SysRoleMenu roleMenu = new SysRoleMenu();
|
||||
roleMenu.setRoleId(roleId);
|
||||
roleMenu.setMenuId(Long.valueOf(menuId));
|
||||
|
||||
+3
-3
@@ -45,8 +45,8 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
protected void configure(HttpSecurity http) {
|
||||
http.headers().frameOptions().disable().and().formLogin().loginPage("/login.html").loginProcessingUrl("/login")
|
||||
.failureHandler(new LoginFailureHandler()).and().authorizeRequests()
|
||||
.antMatchers("/login.html", "/login", "/actuator/**").permitAll().anyRequest().authenticated().and()
|
||||
.csrf().disable();
|
||||
.antMatchers("/login.html", "/login", "/actuator/**", "/ureport/preview").permitAll().anyRequest()
|
||||
.authenticated().and().csrf().disable();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
*/
|
||||
@Override
|
||||
public void configure(WebSecurity web) {
|
||||
web.ignoring().antMatchers("/favicon.ico", "/css/**", "/error");
|
||||
web.ignoring().antMatchers("/favicon.ico", "/css/**", "/ureport/res/**", "/error");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user