fix 78554 【垂直越权】国内标准-垂直越权问题
This commit is contained in:
+3
@@ -119,6 +119,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
@ApiOperation(value = "标准分享-国内分享", notes = "标准分享-国内分享")
|
||||
@PostMapping(value = "/domestic/add")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@RequiresPermissions("domesticStandard:share")
|
||||
public Result<T> domesticAdd(@Validated @RequestBody LawsStandardSharing lawsStandardSharing) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
SysUser user = sysUserService.getById(sysUser.getId());
|
||||
@@ -174,6 +175,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
@ApiOperation(value = "标准分享-海外分享", notes = "标准分享-海外分享")
|
||||
@PostMapping(value = "/overseas/add")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@RequiresPermissions("overseasStandard:share")
|
||||
public Result<T> overseasAdd(@Validated @RequestBody LawsStandardSharing lawsStandardSharing) {
|
||||
// 发送消息
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
@@ -213,6 +215,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
@ApiOperation(value = "标准分享-企标分享", notes = "标准分享-企标分享")
|
||||
@PostMapping(value = "/enterprise/add")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@RequiresPermissions("enterpriseStandard:share")
|
||||
public Result<T> enterpriseAdd(@Validated @RequestBody LawsStandardSharing lawsStandardSharing) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
SysUser user = sysUserService.getById(sysUser.getId());
|
||||
|
||||
Reference in New Issue
Block a user