mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
name slug check
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user