mirror of
https://github.com/distribution/distribution.git
synced 2025-09-11 03:39:41 +00:00
Merge pull request #2121 from nwt/delete-action
Change DELETE action from "*" to "delete"
This commit is contained in:
@@ -901,12 +901,10 @@ func appendAccessRecords(records []auth.Access, method string, repo string) []au
|
||||
Action: "push",
|
||||
})
|
||||
case "DELETE":
|
||||
// DELETE access requires full admin rights, which is represented
|
||||
// as "*". This may not be ideal.
|
||||
records = append(records,
|
||||
auth.Access{
|
||||
Resource: resource,
|
||||
Action: "*",
|
||||
Action: "delete",
|
||||
})
|
||||
}
|
||||
return records
|
||||
|
Reference in New Issue
Block a user