- Fix - A non-admin user would get permission denied on all pages.
This commit is contained in:
parent
3828411faf
commit
564c83720b
3 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue