|
|
@@ -58,13 +58,13 @@ public class IdentityAuthController extends BaseController {
|
|
|
identityAuthService.apply(identityAuth);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN', 'OPERATOR')")
|
|
|
@PostMapping("/pass")
|
|
|
public void audit(@RequestParam Long id) {
|
|
|
identityAuthService.audit(id, AuthStatus.SUCCESS);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN', 'OPERATOR')")
|
|
|
@PostMapping("/deny")
|
|
|
public void deny(@RequestParam Long id) {
|
|
|
identityAuthService.audit(id, AuthStatus.FAIL);
|