Skip to content

Commit

Permalink
Make the GetPath permission translate to a "r" ace permission
Browse files Browse the repository at this point in the history
It always works that way in the other direction ("r" -> GetPath)
  • Loading branch information
aduffeck committed Mar 11, 2021
1 parent 05c9b34 commit 39e04dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/ace/ace.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func unmarshalKV(s string) (*ACE, error) {
func getACEPerm(set *provider.ResourcePermissions) string {
var b strings.Builder

if set.Stat || set.InitiateFileDownload || set.ListContainer {
if set.Stat || set.InitiateFileDownload || set.ListContainer || set.GetPath {
b.WriteString("r")
}
if set.InitiateFileUpload || set.Move {
Expand Down

0 comments on commit 39e04dc

Please sign in to comment.