|
|
@@ -39,25 +39,25 @@ public class TeamController extends BaseController {
|
|
|
return teamService.create(record);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','ROLE_GROUP')")
|
|
|
@PostMapping("/mute/{id}")
|
|
|
public void mute(@PathVariable Long id) {
|
|
|
teamService.mute(id);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','ROLE_GROUP')")
|
|
|
@PostMapping("/muteSolo")
|
|
|
public void muteSolo(Long tid, String accid) {
|
|
|
teamService.muteMember(tid, accid);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','ROLE_GROUP')")
|
|
|
@PostMapping("/cancelMuteSolo")
|
|
|
public void cancelMuteSolo(Long tid, String accid) {
|
|
|
teamService.cancelMuteMember(tid, accid);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','ROLE_GROUP')")
|
|
|
@PostMapping("/cancelMute/{id}")
|
|
|
public void cancelMute(@PathVariable Long id) {
|
|
|
teamService.cancelMute(id);
|