Fix all occurances of checking for RemoteClusterServiceLicense (#22453)

Этот коммит содержится в:
Doug Lauder
2023-03-13 12:20:27 -04:00
коммит произвёл GitHub
родитель 78d2768289
Коммит 10ae28e320
4 изменённых файлов: 18 добавлений и 3 удалений

Просмотреть файл

@@ -321,6 +321,21 @@ func (l *License) HasEnterpriseMarketplacePlugins() bool {
l.SkuShortName == LicenseShortSkuEnterprise
}
func (l *License) HasRemoteClusterService() bool {
if l == nil {
return false
}
// If SharedChannels is enabled then RemoteClusterService must be enabled.
if l.HasSharedChannels() {
return true
}
return (l.Features != nil && l.Features.RemoteClusterService != nil && *l.Features.RemoteClusterService) ||
l.SkuShortName == LicenseShortSkuProfessional ||
l.SkuShortName == LicenseShortSkuEnterprise
}
func (l *License) HasSharedChannels() bool {
if l == nil {
return false