diff options
-rw-r--r-- | lib/public/ServerVersion.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/ServerVersion.php b/lib/public/ServerVersion.php index 637c34d3619..d44452d42d0 100644 --- a/lib/public/ServerVersion.php +++ b/lib/public/ServerVersion.php @@ -77,6 +77,12 @@ class ServerVersion { * @since 31.0.0 */ public function getChannel(): string { + $updaterChannel = Server::get(IConfig::class)->getSystemValueString('updater.release.channel', $this->channel); + + if (in_array($updaterChannel, ['beta', 'stable', 'enterprise', 'git'], true)) { + return $updaterChannel; + } + return $this->channel; } |