fixed frontend config value evaluation & default values for INVITE_REGISTRATION. Unified the way the config is accessed.

This commit is contained in:
Ulf Gebhardt 2021-03-18 12:33:52 +01:00 committed by Moriz Wahl
parent a37a9d05c8
commit 6584151a39

View File

@ -87,7 +87,7 @@ const noEmailFilter = rule({
return !('email' in args)
})
const publicRegistration = rule()(() => !!CONFIG.PUBLIC_REGISTRATION)
const publicRegistration = rule()(() => CONFIG.PUBLIC_REGISTRATION)
// Permissions
export default shield(