Skip to content

Commit

Permalink
Change condition for setting sharing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Oct 12, 2021
1 parent 5dbb87c commit 4a9c680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/grants/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func GetGrantPermissionSet(perm string, isDir bool) *provider.ResourcePermission
rp.Delete = false
}

if strings.Contains(perm, "m") && !strings.Contains(perm, "!m") {
if strings.Contains(perm, "w") && strings.Contains(perm, "x") && !strings.Contains(perm, "!m") {
rp.AddGrant = true
rp.ListGrants = true
rp.RemoveGrant = true
Expand Down

0 comments on commit 4a9c680

Please sign in to comment.