mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 07:49:41 -05:00
read-only storagehome and storageusers
This commit is contained in:
@@ -142,6 +142,12 @@ func storageUsersConfigFromStruct(c *cli.Context, cfg *config.Config) map[string
|
||||
},
|
||||
},
|
||||
}
|
||||
if cfg.Reva.StorageUsers.ReadOnly {
|
||||
gcfg := rcfg["grpc"].(map[string]interface{})
|
||||
gcfg["interceptors"] = map[string]interface{}{
|
||||
"readonly": map[string]interface{}{},
|
||||
}
|
||||
}
|
||||
return rcfg
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user