mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
[system admin] settings: only enable 'T&C' setting in Pro (#4515)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React, { Component, Fragment } from 'react';
|
import React, { Component, Fragment } from 'react';
|
||||||
import { Utils } from '../../../utils/utils';
|
import { Utils } from '../../../utils/utils';
|
||||||
import { seafileAPI } from '../../../utils/seafile-api';
|
import { seafileAPI } from '../../../utils/seafile-api';
|
||||||
import { gettext, mediaUrl, logoPath, faviconPath, loginBGPath } from '../../../utils/constants';
|
import { gettext, isPro, mediaUrl, logoPath, faviconPath, loginBGPath } from '../../../utils/constants';
|
||||||
import Loading from '../../../components/loading';
|
import Loading from '../../../components/loading';
|
||||||
import toaster from '../../../components/toast';
|
import toaster from '../../../components/toast';
|
||||||
import MainPanelTopbar from '../main-panel-topbar';
|
import MainPanelTopbar from '../main-panel-topbar';
|
||||||
@@ -344,7 +344,7 @@ class WebSettings extends Component {
|
|||||||
/>
|
/>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section headingText={gettext('Terms')}>
|
{isPro && <Section headingText={gettext('Terms')}>
|
||||||
<CheckboxItem
|
<CheckboxItem
|
||||||
saveSetting={this.saveSetting}
|
saveSetting={this.saveSetting}
|
||||||
displayName='ENABLE_TERMS_AND_CONDITIONS'
|
displayName='ENABLE_TERMS_AND_CONDITIONS'
|
||||||
@@ -352,7 +352,7 @@ class WebSettings extends Component {
|
|||||||
value={config_dict['ENABLE_TERMS_AND_CONDITIONS']}
|
value={config_dict['ENABLE_TERMS_AND_CONDITIONS']}
|
||||||
helpTip={gettext('Enable system admin to add Terms and Conditions, and all users will have to accept the terms.')}
|
helpTip={gettext('Enable system admin to add Terms and Conditions, and all users will have to accept the terms.')}
|
||||||
/>
|
/>
|
||||||
</Section>
|
</Section>}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user