Remove obsolete anonymous limits
Related to https://gitlab.com/timvisee/send/-/issues/3
This commit is contained in:
parent
9e4c063749
commit
15d37da667
5 changed files with 7 additions and 39 deletions
|
@ -2,7 +2,7 @@ const config = require('../config');
|
|||
const storage = require('../storage');
|
||||
|
||||
module.exports = function(req, res) {
|
||||
const max = req.user ? config.max_downloads : config.anon_max_downloads;
|
||||
const max = config.max_downloads;
|
||||
const dlimit = req.body.dlimit;
|
||||
if (!dlimit || dlimit > max) {
|
||||
return res.sendStatus(400);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue