Skip to content

Commit 27c19c4

Browse files
Read ParseApp's custom attribute to hide GDPR fields
1 parent 3ffbfce commit 27c19c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/dashboard/Settings/SecuritySettings.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ 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-
{(!currentApp.isGDPR || currentApp.forceShowGDPRFields) &&
104+
{(!currentApp.custom.isGDPR || currentApp.custom.forceShowGDPRFields) &&
105105
<Field
106106
label={<Label text='Master key' description='Using this key overrides all permissions. Not usable on client SDKs. Keep it secret!' />}
107107
input={<KeyField name='Master' hidden={true}>{currentApp.masterKey}</KeyField>} />

src/lib/ParseApp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export default class ParseApp {
4040
production,
4141
iconName,
4242
supportedPushLocales,
43-
feedbackEmail
43+
feedbackEmail,
44+
custom
4445
}) {
4546
this.name = appName;
4647
this.feedbackEmail = feedbackEmail;
@@ -63,6 +64,7 @@ export default class ParseApp {
6364
this.serverInfo = serverInfo;
6465
this.icon = iconName;
6566
this.supportedPushLocales = supportedPushLocales;
67+
this.custom = custom;
6668

6769
this.settings = {
6870
fields: {},

0 commit comments

Comments
 (0)