From a6af0cc73afcdb1531aae974898bf1483b0dc43c Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Thu, 23 Oct 2025 20:27:45 +0530 Subject: [PATCH] Skip auth check to delete vcs lock document --- app/controllers/api/vcs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 5bda9961f3..e8feff1bd4 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -166,7 +166,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); } finally { - $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + Authorization::skip(fn () => $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId)); } } } else { @@ -237,7 +237,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); } finally { - $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + Authorization::skip(fn () => $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId)); } } } @@ -458,7 +458,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId $github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment()); } } finally { - $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + Authorization::skip(fn () => $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId)); } } } @@ -1374,7 +1374,7 @@ App::post('/v1/vcs/github/events') Authorization::skip(fn () => $dbForPlatform->deleteDocument('repositories', $repository->getId())); } - $dbForPlatform->deleteDocument('installations', $installation->getId()); + Authorization::skip(fn () => $dbForPlatform->deleteDocument('installations', $installation->getId())); } } } elseif ($event == $github::EVENT_PULL_REQUEST) {