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:
@@ -34,7 +34,6 @@ public class RoleController {
|
||||
/**
|
||||
* 获取用户角色选项
|
||||
*/
|
||||
@PreAuthorize("hasAuthority('admin')")
|
||||
@GetMapping
|
||||
public ApiResult<List<OptionResponse>> getUserRole() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user