From 11c4dd0e16d4f1d3b82f1e233e0273d4a828ed74 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 28 Feb 2018 13:38:40 +0200 Subject: [PATCH] Camp manager file upload permission workaround (#694) * removing contraint on file upload for now because many camp managers dont have camp manager rolse * bumping to v2.10.20 --- package.json | 2 +- routes/api/api_camps_routes.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a384d0277..0bc11446c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "this is part of the deployment proess, so it is important to update the version number", "version name corresponds to the github release name / tag name - https://github.com/Midburn/Spark/releases" ], - "version": "2.10.19", + "version": "2.10.20", "private": true, "scripts": { "postinstall": "cd public; npm install", diff --git a/routes/api/api_camps_routes.js b/routes/api/api_camps_routes.js index 554b0bba9..95da1324b 100644 --- a/routes/api/api_camps_routes.js +++ b/routes/api/api_camps_routes.js @@ -649,7 +649,7 @@ module.exports = (app, passport) => { const __can_edit_camp_file = (user) => { // If the user is an Admin, he can edit files without constraints - if (user.isAdmin || user.isCampManager) return true; + // if (user.isAdmin || user.isCampManager) return true; //const now = new Date() //const startDate = new Date(camp_files_config.upload_start_date) @@ -660,8 +660,9 @@ module.exports = (app, passport) => { // return true //} - return false + //return false + return true; } const __prepare_camp_files = (camp, user) => {