mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
fix: private upload custom response config option
This commit is contained in:
parent
a4f353ddcf
commit
b86aa8dc08
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user