Skip to content

Commit 3ffbfce

Browse files
Hide Security Settings GDPR fields
Checks isGDPR and forceShowGDPRFields flags to hide/show masterKey from Security Settings. Only shows when isGDPR is false, or forceShowGDPRFields is true
1 parent b1c4f15 commit 3ffbfce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/dashboard/Settings/SecuritySettings.react.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ export default class SecuritySettings extends DashboardView {
101101
<Field
102102
label={<Label text='File key' description='Use this key when migrating to your own Parse Server to ensure your new server has access to existing files.' />}
103103
input={<KeyField name='File' hidden={true}>{currentApp.fileKey}</KeyField>} />
104-
<Field
105-
label={<Label text='Master key' description='Using this key overrides all permissions. Not usable on client SDKs. Keep it secret!' />}
106-
input={<KeyField name='Master' hidden={true}>{currentApp.masterKey}</KeyField>} />
104+
{(!currentApp.isGDPR || currentApp.forceShowGDPRFields) &&
105+
<Field
106+
label={<Label text='Master key' description='Using this key overrides all permissions. Not usable on client SDKs. Keep it secret!' />}
107+
input={<KeyField name='Master' hidden={true}>{currentApp.masterKey}</KeyField>} />
108+
}
107109
</Fieldset>
108110
{/*<Fieldset legend='Reset Master Key' description='Use this when your key has been compromised.'>*/}
109111
{/*<Field*/}

0 commit comments

Comments
 (0)