refactor: convert config variables to upper case
This commit is contained in:
@@ -95,7 +95,7 @@ const Upload = () => {
|
||||
}
|
||||
}
|
||||
}, [files]);
|
||||
if (!user && !config.get("allowUnauthenticatedShares")) {
|
||||
if (!user && !config.get("ALLOW_UNAUTHENTICATED_SHARES")) {
|
||||
router.replace("/");
|
||||
} else {
|
||||
return (
|
||||
@@ -110,10 +110,12 @@ const Upload = () => {
|
||||
modals,
|
||||
{
|
||||
isUserSignedIn: user ? true : false,
|
||||
allowUnauthenticatedShares: config.get(
|
||||
"allowUnauthenticatedShares"
|
||||
ALLOW_UNAUTHENTICATED_SHARES: config.get(
|
||||
"ALLOW_UNAUTHENTICATED_SHARES"
|
||||
),
|
||||
ENABLE_EMAIL_RECIPIENTS: config.get(
|
||||
"ENABLE_EMAIL_RECIPIENTS"
|
||||
),
|
||||
emailRecipientsEnabled: config.get("emailRecipientsEnabled"),
|
||||
},
|
||||
uploadFiles
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user