mirror of https://github.com/jeecgboot/jeecg-boot
系统接口加了权限注解@RequiresPermissions未授权会提示无权限,暂时注释掉
(无奈的修改,因为太多人问没权限的问题,请注重安全的项目,自行打开注解)pull/4625/head v3.5.0
parent
3c2038ac0e
commit
42eedcd3b3
|
@ -47,7 +47,7 @@ public class OssFileController {
|
|||
|
||||
@ResponseBody
|
||||
@PostMapping("/upload")
|
||||
@RequiresRoles("admin")
|
||||
//@RequiresRoles("admin")
|
||||
//@RequiresPermissions("system:ossFile:upload")
|
||||
public Result upload(@RequestParam("file") MultipartFile multipartFile) {
|
||||
Result result = new Result();
|
||||
|
|
|
@ -79,7 +79,7 @@ public class QuartzJobController {
|
|||
* @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 class QuartzJobController {
|
|||
* @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 class QuartzJobController {
|
|||
* @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 class QuartzJobController {
|
|||
* @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 class QuartzJobController {
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequiresRoles("admin")
|
||||
//@RequiresRoles("admin")
|
||||
//@RequiresPermissions("system:quartzJob:pause")
|
||||
@GetMapping(value = "/pause")
|
||||
@ApiOperation(value = "停止定时任务")
|
||||
|
@ -170,7 +170,7 @@ public class QuartzJobController {
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequiresRoles("admin")
|
||||
//@RequiresRoles("admin")
|
||||
//@RequiresPermissions("system:quartzJob:resume")
|
||||
@GetMapping(value = "/resume")
|
||||
@ApiOperation(value = "启动定时任务")
|
||||
|
@ -271,7 +271,7 @@ public class QuartzJobController {
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequiresRoles("admin")
|
||||
//@RequiresRoles("admin")
|
||||
//@RequiresPermissions("system:quartzJob:execute")
|
||||
@GetMapping("/execute")
|
||||
public Result<?> execute(@RequestParam(name = "id", required = true) String id) {
|
||||
|
|
Loading…
Reference in New Issue