[Rules] Delete of rule should not be publicly available (#799)

rkapoor10-patch-1
Johannes Batzill 2023-11-14 23:37:45 +00:00 committed by Harness
parent 70fbaaed16
commit 07951e7d7e
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func (c *Controller) RuleDelete(ctx context.Context,
repoRef string,
uid string,
) error {
repo, err := c.getRepoCheckAccess(ctx, session, repoRef, enum.PermissionRepoEdit, true)
repo, err := c.getRepoCheckAccess(ctx, session, repoRef, enum.PermissionRepoEdit, false)
if err != nil {
return err
}