|
|
@@ -40,7 +40,7 @@ public class MainController {
|
|
|
@RequestMapping("/admin")
|
|
|
public ModelAndView admin(HttpServletRequest request) {
|
|
|
Subject subject = SecurityUtils.getSubject();
|
|
|
- if (subject.hasRole("admin")) {
|
|
|
+ if (subject.hasRole("admin")||subject.hasRole("vlog")) {
|
|
|
return new ModelAndView("html/admin.html");
|
|
|
} else {
|
|
|
return new ModelAndView("redirect:/loginAdmin");
|