|
|
@@ -22,29 +22,29 @@ export default class AdminGeneralSecurityContainer extends Container {
|
|
|
wikiMode: '',
|
|
|
currentRestrictGuestMode: 'Deny',
|
|
|
currentPageCompleteDeletionAuthority: 'anyone',
|
|
|
- isHideRestrictedByOwner: true,
|
|
|
- isHideRestrictedByGroup: true,
|
|
|
- useOnlyEnvVarsForSomeOptions: true,
|
|
|
+ isHideRestrictedByOwner: false,
|
|
|
+ isHideRestrictedByGroup: false,
|
|
|
+ useOnlyEnvVarsForSomeOptions: false,
|
|
|
appSiteUrl: appContainer.config.crowi.url || '',
|
|
|
- isLocalEnabled: true,
|
|
|
+ isLocalEnabled: false,
|
|
|
registrationMode: 'open',
|
|
|
registrationWhiteList: '',
|
|
|
- isLdapEnabled: true,
|
|
|
- isSamlEnabled: true,
|
|
|
- isOidcEnabled: true,
|
|
|
- isBasicEnabled: true,
|
|
|
- isGoogleEnabled: true,
|
|
|
- isGithubEnabled: true,
|
|
|
- isTwitterEnabled: true,
|
|
|
+ isLdapEnabled: false,
|
|
|
+ isSamlEnabled: false,
|
|
|
+ isOidcEnabled: false,
|
|
|
+ isBasicEnabled: false,
|
|
|
+ isGoogleEnabled: false,
|
|
|
+ isGithubEnabled: false,
|
|
|
+ isTwitterEnabled: false,
|
|
|
};
|
|
|
|
|
|
this.onIsWikiModeForced = this.onIsWikiModeForced.bind(this);
|
|
|
}
|
|
|
|
|
|
async retrieveSecurityData() {
|
|
|
+ // TODO GW-956 separate local setting container
|
|
|
const response = await this.appContainer.apiv3.get('/security-setting/');
|
|
|
- const { generalSetting } = response.data.securityParams;
|
|
|
- const { localSetting } = response.data.securityParams;
|
|
|
+ const { generalSetting, localSetting } = response.data.securityParams;
|
|
|
this.onIsWikiModeForced(generalSetting.wikiMode);
|
|
|
this.setState({
|
|
|
currentRestrictGuestMode: generalSetting.restrictGuestMode || 'deny',
|