diff options
Diffstat (limited to 'models/release.go')
-rw-r--r-- | models/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go index 3e3db98ab4..ae3200d39d 100644 --- a/models/release.go +++ b/models/release.go @@ -365,7 +365,7 @@ func DeleteReleaseByID(id int64, u *User, delTag bool) error { return fmt.Errorf("GetRepositoryByID: %v", err) } - has, err := HasAccess(u, repo, AccessModeWrite) + has, err := HasAccess(u.ID, repo, AccessModeWrite) if err != nil { return fmt.Errorf("HasAccess: %v", err) } else if !has { |