name slug check

This commit is contained in:
Raymond Pete
2015-07-26 22:21:16 -04:00
parent 49cdf87ab9
commit 5b1db50733

View File

@@ -74,8 +74,12 @@ func (b *backend) pathLogin(
continue
}
// Append the names so we can get the policies
// Append the names AND slug so we can get the policies
// Slug is needed for teamnames with whitespaces
teamNames = append(teamNames, *t.Name)
if *t.Name != *t.Slug {
teamNames = append(teamNames, *t.Slug)
}
}
policiesList, err := b.Map.Policies(req.Storage, teamNames...)