mirror of
https://github.com/datarhei/core.git
synced 2025-10-29 10:32:44 +08:00
Define default policies to mimic current behaviour
This commit is contained in:
@@ -213,8 +213,15 @@ func NewServer(config Config) (Server, error) {
|
||||
s.logger = log.New("")
|
||||
}
|
||||
|
||||
mounts := []string{}
|
||||
|
||||
for _, fs := range s.filesystems {
|
||||
mounts = append(mounts, fs.FS.Mountpoint)
|
||||
}
|
||||
|
||||
s.middleware.iam = mwiam.NewWithConfig(mwiam.Config{
|
||||
IAM: config.IAM,
|
||||
Mounts: mounts,
|
||||
Logger: s.logger.WithComponent("IAM"),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user