feat(partner): let sub-accounts view team leaderboard
CI / verify (pull_request) Has been cancelled

Expose same-primary ranking on home/me for all staff including warehouse roles, and open the leaderboard API without business permission gates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 10:02:42 +08:00
parent 972bdde650
commit 04253b9120
6 changed files with 26 additions and 14 deletions
@@ -89,6 +89,8 @@ export class PartnerDashboardController {
}
@Get('leaderboard')
/** 任意合伙人子账号可看同主账号排行(激励),不校验业务权限点 */
@RequirePartnerPermissions()
leaderboard(
@CurrentUser() user: AuthUser,
@Query('period') period?: string,