mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-08-07 05:14:57 -04:00
check if cfg.Commons is nil
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -97,7 +97,7 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
cfg.Metadata.SystemUserID = cfg.Commons.SystemUserID
|
||||
}
|
||||
|
||||
if cfg.AdminUserID == "" {
|
||||
if cfg.AdminUserID == "" && cfg.Commons != nil {
|
||||
cfg.AdminUserID = cfg.Commons.AdminUserID
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user