Fix an issue with excluded attributes

This commit is contained in:
Alex 2020-01-26 18:57:29 +01:00
parent 82402749e6
commit b768b78406

2
acl.go
View file

@ -45,7 +45,7 @@ func ParseACL(def []string) (ACL, error) {
attr, exclAttr := []string{}, []string{} attr, exclAttr := []string{}, []string{}
for _, s := range splitNoEmpty(parts[4]) { for _, s := range splitNoEmpty(parts[4]) {
if s[0] == '!' { if s[0] == '!' {
exclAttr = append(exclAttr, s) exclAttr = append(exclAttr, s[1:])
} else { } else {
attr = append(attr, s) attr = append(attr, s)
} }