feat(role): remove admin authority check from getUserRole endpoint

- Removed @PreAuthorize annotation requiring 'admin' authority
- Made getUserRole endpoint publicly accessible
- Simplified role retrieval logic for all users
This commit is contained in:
Chaos
2025-11-28 17:03:22 +08:00
parent f4070d1b99
commit 3f8dc871ab

View File

@@ -34,7 +34,6 @@ public class RoleController {
/**
* 获取用户角色选项
*/
@PreAuthorize("hasAuthority('admin')")
@GetMapping
public ApiResult<List<OptionResponse>> getUserRole() {