(message: string)
| 290 | } |
| 291 | |
| 292 | public static disableForCloud(message: string) { |
| 293 | return (_req: Request, res: Response, next: NextFunction) => { |
| 294 | const identityManager = getRunningExpressApp().identityManager |
| 295 | if (identityManager.isCloud()) { |
| 296 | return res.status(403).json({ message }) |
| 297 | } |
| 298 | return next() |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | public async createStripeCustomerPortalSession(req: Request) { |
| 303 | if (!this.stripeManager) { |
no test coverage detected