Rename AccessByHash to AcquireByHash for consistency with other flags

This commit is contained in:
Oliver Sauder
2017-11-02 10:37:20 +01:00
parent 438e206b3d
commit 092a7ed8f3
5 changed files with 49 additions and 48 deletions
+3 -3
View File
@@ -238,7 +238,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
Component string `binding:"required"`
Name string `binding:"required"`
}
AccessByHash *bool
AcquireByHash *bool
}
if c.Bind(&b) != nil {
@@ -318,8 +318,8 @@ func apiPublishUpdateSwitch(c *gin.Context) {
published.SkipContents = *b.SkipContents
}
if b.AccessByHash != nil {
published.AccessByHash = *b.AccessByHash
if b.AcquireByHash != nil {
published.AcquireByHash = *b.AcquireByHash
}
err = published.Publish(context.PackagePool(), context, context.CollectionFactory(), signer, nil, b.ForceOverwrite)