Skip to content

Commit

Permalink
fix(security): only Super Admins can reboot the server (#12100)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentlp committed Aug 25, 2022
1 parent fc41607 commit 39e2e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bp/src/admin/management/management-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class ManagementRouter extends CustomAdminRouter {

this.router.post(
'/rebootServer',
assertSuperAdmin,
this.asyncMiddleware(async (req, res) => {
const user = req.tokenUser!.email
const config = await this.configProvider.getBotpressConfig()
Expand Down

0 comments on commit 39e2e0f

Please sign in to comment.