Skip to content

Commit 81b081d

Browse files
committed
[server] Fix permissions for setMaintenanceMode to "maintenance"
1 parent 36a7cc1 commit 81b081d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/orgs/organization-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ export class OrganizationService {
797797
*/
798798
public async setMaintenanceMode(userId: string, orgId: string, enabled: boolean): Promise<boolean> {
799799
// Using write_settings permission as it's available to owners and installation admins
800-
await this.auth.checkPermissionOnOrganization(userId, "write_settings", orgId);
800+
await this.auth.checkPermissionOnOrganization(userId, "maintenance", orgId);
801801

802802
const team = await this.teamDB.findTeamById(orgId);
803803
if (!team) {

0 commit comments

Comments
 (0)