fix(server): allow to checkout selfhost team in canary (#10130)

This commit is contained in:
forehalo
2025-02-12 12:19:28 +00:00
parent e4e06f35bb
commit 8129434a2e
3 changed files with 10 additions and 1 deletions
@@ -134,7 +134,8 @@ export class SubscriptionService implements OnApplicationBootstrap {
if (
this.config.deploy &&
this.config.affine.canary &&
(!('user' in args) || !this.feature.isStaff(args.user.email))
args.user &&
!this.feature.isStaff(args.user.email)
) {
throw new ActionForbidden();
}