From 5100bcd57253b5e52223ed796678e70484eb8663 Mon Sep 17 00:00:00 2001 From: Alex Tugarev Date: Wed, 8 Nov 2023 06:45:27 +0000 Subject: [PATCH] fixup: bogus permission check --- components/server/src/auth/auth-provider-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/server/src/auth/auth-provider-service.ts b/components/server/src/auth/auth-provider-service.ts index 5a1ce695980deb..db5060cc64ef30 100644 --- a/components/server/src/auth/auth-provider-service.ts +++ b/components/server/src/auth/auth-provider-service.ts @@ -221,9 +221,9 @@ export class AuthProviderService { } if (result.organizationId) { - await this.auth.checkPermissionOnOrganization(userId, "write_git_provider", result.organizationId); + await this.auth.checkPermissionOnOrganization(userId, "read_git_provider", result.organizationId); } else { - await this.auth.checkPermissionOnUser(userId, "write_info", userId); + await this.auth.checkPermissionOnUser(userId, "read_info", userId); } return result;