mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[fix] Remove connectionConfiguration
This commit is contained in:
committed by
Sergey Konovalov
parent
058248489c
commit
5d54db57f4
@ -15,8 +15,7 @@ import styles from './NotificationConfig.module.scss';
|
||||
const emailConfigTabs = [
|
||||
{key: 'notifications', label: 'Notification Rules'},
|
||||
{key: 'smtp-server', label: 'SMTP Server'},
|
||||
{key: 'defaults', label: 'Default Emails'},
|
||||
{key: 'security', label: 'Security'}
|
||||
{key: 'defaults', label: 'Default Emails'}
|
||||
];
|
||||
|
||||
function EmailConfig() {
|
||||
@ -32,8 +31,6 @@ function EmailConfig() {
|
||||
smtpPort: '',
|
||||
smtpUsername: '',
|
||||
smtpPassword: '',
|
||||
disableFileAccess: false,
|
||||
disableUrlAccess: false,
|
||||
defaultFromEmail: '',
|
||||
defaultToEmail: '',
|
||||
licenseExpirationWarningEnable: false,
|
||||
@ -54,8 +51,6 @@ function EmailConfig() {
|
||||
smtpPort: 'email.smtpServerConfiguration.port',
|
||||
smtpUsername: 'email.smtpServerConfiguration.auth.user',
|
||||
smtpPassword: 'email.smtpServerConfiguration.auth.pass',
|
||||
disableFileAccess: 'email.connectionConfiguration.disableFileAccess',
|
||||
disableUrlAccess: 'email.connectionConfiguration.disableUrlAccess',
|
||||
defaultFromEmail: 'email.contactDefaults.from',
|
||||
defaultToEmail: 'email.contactDefaults.to',
|
||||
licenseExpirationWarningEnable: 'notification.rules.licenseExpirationWarning.enable',
|
||||
@ -214,30 +209,6 @@ function EmailConfig() {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
case 'security':
|
||||
return (
|
||||
<div className={styles.tabPanel}>
|
||||
<div className={styles.formRow}>
|
||||
<Checkbox
|
||||
label='Disable File Access:'
|
||||
checked={localSettings.disableFileAccess}
|
||||
onChange={value => handleFieldChange('disableFileAccess', value)}
|
||||
description='Prevent email connections from accessing local files'
|
||||
error={getFieldError(CONFIG_PATHS.disableFileAccess)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.formRow}>
|
||||
<Checkbox
|
||||
label='Disable URL Access:'
|
||||
checked={localSettings.disableUrlAccess}
|
||||
onChange={value => handleFieldChange('disableUrlAccess', value)}
|
||||
description='Prevent email connections from accessing external URLs'
|
||||
error={getFieldError(CONFIG_PATHS.disableUrlAccess)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
case 'defaults':
|
||||
return (
|
||||
<div className={styles.tabPanel}>
|
||||
|
||||
@ -257,14 +257,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectionConfiguration": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"disableFileAccess": {"type": "boolean"},
|
||||
"disableUrlAccess": {"type": "boolean"}
|
||||
}
|
||||
},
|
||||
"contactDefaults": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
Reference in New Issue
Block a user