Lower case all policy values in ParsePolicies before processing
This commit is contained in:
parent
bd6f1bbd08
commit
0cec22d27a
|
@ -9,7 +9,7 @@ func ParsePolicies(policiesRaw string) []string {
|
|||
policies := strings.Split(policiesRaw, ",")
|
||||
defaultFound := false
|
||||
for i, p := range policies {
|
||||
policies[i] = strings.TrimSpace(p)
|
||||
policies[i] = strings.ToLower(strings.TrimSpace(p))
|
||||
// If 'root' policy is present, ignore all other policies.
|
||||
if policies[i] == "root" {
|
||||
policies = []string{"root"}
|
||||
|
|
Loading…
Reference in New Issue