diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/oss/controller/OssFileController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/oss/controller/OssFileController.java index b4375d5d41..6e81ced9bb 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/oss/controller/OssFileController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/oss/controller/OssFileController.java @@ -47,7 +47,7 @@ public Result> queryPageList(OssFile file, @ResponseBody @PostMapping("/upload") - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:ossFile:upload") public Result upload(@RequestParam("file") MultipartFile multipartFile) { Result result = new Result(); diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/quartz/controller/QuartzJobController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/quartz/controller/QuartzJobController.java index 25970aa5ba..9f2f8152ca 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/quartz/controller/QuartzJobController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/quartz/controller/QuartzJobController.java @@ -79,7 +79,7 @@ public Result queryPageList(QuartzJob quartzJob, @RequestParam(name = "pageNo * @param quartzJob * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:add") @RequestMapping(value = "/add", method = RequestMethod.POST) public Result add(@RequestBody QuartzJob quartzJob) { @@ -93,7 +93,7 @@ public Result add(@RequestBody QuartzJob quartzJob) { * @param quartzJob * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:edit") @RequestMapping(value = "/edit", method ={RequestMethod.PUT, RequestMethod.POST}) public Result eidt(@RequestBody QuartzJob quartzJob) { @@ -112,7 +112,7 @@ public Result eidt(@RequestBody QuartzJob quartzJob) { * @param id * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:delete") @RequestMapping(value = "/delete", method = RequestMethod.DELETE) public Result delete(@RequestParam(name = "id", required = true) String id) { @@ -131,7 +131,7 @@ public Result delete(@RequestParam(name = "id", required = true) String id) { * @param ids * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:deleteBatch") @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { @@ -151,7 +151,7 @@ public Result deleteBatch(@RequestParam(name = "ids", required = true) String * @param id * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:pause") @GetMapping(value = "/pause") @ApiOperation(value = "停止定时任务") @@ -170,7 +170,7 @@ public Result pauseJob(@RequestParam(name = "id") String id) { * @param id * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:resume") @GetMapping(value = "/resume") @ApiOperation(value = "启动定时任务") @@ -271,7 +271,7 @@ public Result importExcel(HttpServletRequest request, HttpServletResponse res * @param id * @return */ - @RequiresRoles("admin") + //@RequiresRoles("admin") //@RequiresPermissions("system:quartzJob:execute") @GetMapping("/execute") public Result execute(@RequestParam(name = "id", required = true) String id) {