- Fix - A non-admin user would get permission denied on all pages.

This commit is contained in:
Tomas Bures 2020-07-18 09:48:03 +02:00
parent 3828411faf
commit 564c83720b
3 changed files with 6 additions and 8 deletions

View file

@ -33,7 +33,7 @@ async function getAuthenticatedConfig(context) {
globalPermissions[perm] = true;
}
const setts = await settings.get(contextHelpers.getAdminContext(), ['mapsApiKey']);
const setts = await settings.get(contextHelpers.getAdminContext(), ['mapsApiKey', 'shoutout']);
return {
defaultCustomFormValues: await forms.getDefaultCustomFormValues(),
@ -49,7 +49,8 @@ async function getAuthenticatedConfig(context) {
verpEnabled: config.verp.enabled,
reportsEnabled: config.reports.enabled,
mapsApiKey: setts.mapsApiKey,
builtinZoneMTAEnabled: config.builtinZoneMTA.enabled
builtinZoneMTAEnabled: config.builtinZoneMTA.enabled,
shoutout: setts.shoutout
}
}