editor public fix
This commit is contained in:
parent
8adfb9f289
commit
c68a35ef82
@ -193,6 +193,12 @@ public class PanelController {
|
|||||||
return "script-editor";
|
return "script-editor";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/editor-public")
|
||||||
|
public String scriptEditorPublic(Model model, @RequestHeader("User-Agent") String uagent, @RequestHeader("Accept") String accepth) {
|
||||||
|
model.addAttribute("is_mobile", new UAgentInfo(uagent, accepth).detectSmartphone());
|
||||||
|
return "editor-public";
|
||||||
|
}
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -39,6 +39,7 @@ public class SpringSecurity {
|
|||||||
.requestMatchers("/signup/**").permitAll()
|
.requestMatchers("/signup/**").permitAll()
|
||||||
.requestMatchers("/").permitAll()
|
.requestMatchers("/").permitAll()
|
||||||
.requestMatchers("/script-editor").hasAnyAuthority("ROLE_ADMIN")
|
.requestMatchers("/script-editor").hasAnyAuthority("ROLE_ADMIN")
|
||||||
|
.requestMatchers("/editor-public").permitAll()
|
||||||
).formLogin(
|
).formLogin(
|
||||||
form -> form
|
form -> form
|
||||||
.loginPage("/login")
|
.loginPage("/login")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user