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>
Этот коммит содержится в:
@@ -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