mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add policy validation code more rigorous
This commit is contained in:
@@ -144,3 +144,17 @@ func (c *Config) ReadConfig() error {
|
||||
c.Users = users
|
||||
return nil
|
||||
}
|
||||
|
||||
func Loadusers() map[string]User {
|
||||
c := Config{}
|
||||
c.SetupConfig()
|
||||
c.ReadConfig()
|
||||
return c.Users
|
||||
}
|
||||
|
||||
func Loaduser(username string) User {
|
||||
c := Config{}
|
||||
c.SetupConfig()
|
||||
c.ReadConfig()
|
||||
return c.GetUser(username)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user