mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
WIP - Test Coverage: Import & Export include LibreOffice Test Coverage (#4163)
Runs on Travis Will only run locally is ``allowAnyoneToImport`` and ``soffice`` or ``abiword`` is set.
This commit is contained in:
parent
9d69caa8dc
commit
ab8320d15b
7 changed files with 190 additions and 76 deletions
|
@ -71,12 +71,12 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
*
|
||||
* See: https://github.com/ether/etherpad-lite/pull/3833#discussion_r407490205
|
||||
*/
|
||||
if (!req.cookies) {
|
||||
if (!req.cookies && !settings.allowAnyoneToImport) {
|
||||
console.warn(`Unable to import file into "${req.params.pad}". No cookies included in request`);
|
||||
return next();
|
||||
}
|
||||
|
||||
if (!req.cookies.token) {
|
||||
if (!req.cookies.token && !settings.allowAnyoneToImport) {
|
||||
console.warn(`Unable to import file into "${req.params.pad}". No token in the cookies`);
|
||||
return next();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue