feat(supervisor): redact sensitive fields in overview
This commit is contained in:
@@ -180,6 +180,9 @@ func (s *Service) GetSupervisorOverview(ctx context.Context, supervisorUID int,
|
||||
// 对单个 owner 的失败做降级,不影响其他人的展示
|
||||
continue
|
||||
}
|
||||
// 权限边界:监督视图只展示必要字段,避免泄露备注/梦想目标等更私密的信息。
|
||||
home.DailyStatus.Note = nil
|
||||
home.Goal = nil
|
||||
items = append(items, SupervisorOwnerSummary{
|
||||
Owner: owner,
|
||||
Home: home,
|
||||
|
||||
Reference in New Issue
Block a user