mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
comment out broken length check
This commit is contained in:
@@ -648,9 +648,9 @@ module.exports = ProjectEntityHandler =
|
||||
|
||||
|
||||
checkValidElementName: (folder, name, callback = (err) ->) ->
|
||||
# check if the path would be too long
|
||||
if not SafePath.isAllowedLength "#{folder}/#{name}"
|
||||
return callback new Error.InvalidNameError("path too long")
|
||||
# # # check if the path would be too long
|
||||
# # if not SafePath.isAllowedLength "#{folder}/#{name}"
|
||||
# # return callback new Error.InvalidNameError("path too long")
|
||||
# check if the name is already taken by a doc, file or
|
||||
# folder. If so, return an error "file already exists".
|
||||
err = new Errors.InvalidNameError("file already exists")
|
||||
|
||||
Reference in New Issue
Block a user