|
|
@@ -46,7 +46,7 @@ public class DomainOrderController extends BaseController {
|
|
|
//@PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/all")
|
|
|
public Page<DomainOrder> all(@RequestBody PageQuery pageQuery) {
|
|
|
- if (!SecurityUtils.hasRole(AuthorityName.ROLE_ADMIN)) {
|
|
|
+ if (!SecurityUtils.hasRole(AuthorityName.ROLE_ADMIN) & !SecurityUtils.hasRole(AuthorityName.ROLE_ORDERINFO)) {
|
|
|
pageQuery.getQuery().put("userId", SecurityUtils.getAuthenticatedUser().getId());
|
|
|
}
|
|
|
if (pageQuery.getSize() == 50) {
|