fix: private upload custom response config option

This commit is contained in:
Bobby 2021-06-08 08:01:11 +07:00
parent a4f353ddcf
commit b86aa8dc08
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -266,7 +266,7 @@ self.upload = async (req, res, next) => {
if (config.privateUploadGroup) {
if (!user || !perms.is(user, config.privateUploadGroup)) {
throw new ClientError(config.privateUploadCustomRespond || 'Your usergroup is not permitted to upload new files.', { statusCode: 403 })
throw new ClientError(config.privateUploadCustomResponse || 'Your usergroup is not permitted to upload new files.', { statusCode: 403 })
}
}