mirror of https://github.com/harness/drone.git
[Rules] Delete of rule should not be publicly available (#799)
parent
70fbaaed16
commit
07951e7d7e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue