Skip to content

Commit

Permalink
fixup: bogus permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Nov 8, 2023
1 parent aab036b commit 5100bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/server/src/auth/auth-provider-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5100bcd

Please sign in to comment.