Add server settings to further lock files on mobile (#30949)
* Add server settings to further lock files on mobile * fix format with prettier --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com>
Этот коммит содержится в:
@@ -409,6 +409,11 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m
|
||||
props["MobilePreventScreenCapture"] = strconv.FormatBool(*c.NativeAppSettings.MobilePreventScreenCapture)
|
||||
props["MobileJailbreakProtection"] = strconv.FormatBool(*c.NativeAppSettings.MobileJailbreakProtection)
|
||||
}
|
||||
|
||||
if model.MinimumEnterpriseAdvancedLicense(license) {
|
||||
props["MobileEnableSecureFilePreview"] = strconv.FormatBool(*c.NativeAppSettings.MobileEnableSecureFilePreview)
|
||||
props["MobileAllowPdfLinkNavigation"] = strconv.FormatBool(*c.NativeAppSettings.MobileAllowPdfLinkNavigation)
|
||||
}
|
||||
}
|
||||
|
||||
for key, value := range c.FeatureFlags.ToMap() {
|
||||
|
||||
@@ -2906,14 +2906,16 @@ func (s *SamlSettings) SetDefaults() {
|
||||
}
|
||||
|
||||
type NativeAppSettings struct {
|
||||
AppCustomURLSchemes []string `access:"site_customization,write_restrictable,cloud_restrictable"` // telemetry: none
|
||||
AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
AndroidAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
IosAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
MobileExternalBrowser *bool `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
MobileEnableBiometrics *bool `access:"site_customization,write_restrictable"`
|
||||
MobilePreventScreenCapture *bool `access:"site_customization,write_restrictable"`
|
||||
MobileJailbreakProtection *bool `access:"site_customization,write_restrictable"`
|
||||
AppCustomURLSchemes []string `access:"site_customization,write_restrictable,cloud_restrictable"` // telemetry: none
|
||||
AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
AndroidAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
IosAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
MobileExternalBrowser *bool `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||
MobileEnableBiometrics *bool `access:"site_customization,write_restrictable"`
|
||||
MobilePreventScreenCapture *bool `access:"site_customization,write_restrictable"`
|
||||
MobileJailbreakProtection *bool `access:"site_customization,write_restrictable"`
|
||||
MobileEnableSecureFilePreview *bool `access:"site_customization,write_restrictable"`
|
||||
MobileAllowPdfLinkNavigation *bool `access:"site_customization,write_restrictable"`
|
||||
}
|
||||
|
||||
func (s *NativeAppSettings) SetDefaults() {
|
||||
@@ -2948,6 +2950,14 @@ func (s *NativeAppSettings) SetDefaults() {
|
||||
if s.MobileJailbreakProtection == nil {
|
||||
s.MobileJailbreakProtection = NewPointer(false)
|
||||
}
|
||||
|
||||
if s.MobileEnableSecureFilePreview == nil {
|
||||
s.MobileEnableSecureFilePreview = NewPointer(false)
|
||||
}
|
||||
|
||||
if s.MobileAllowPdfLinkNavigation == nil {
|
||||
s.MobileAllowPdfLinkNavigation = NewPointer(false)
|
||||
}
|
||||
}
|
||||
|
||||
type ElasticsearchSettings struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user