Skip to content

Commit

Permalink
Camp manager file upload permission workaround (#694)
Browse files Browse the repository at this point in the history
* removing contraint on file upload for now because many camp managers dont have camp manager rolse

* bumping to v2.10.20
  • Loading branch information
amotenko authored Feb 28, 2018
1 parent fd17b43 commit 11c4dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions routes/api/api_camps_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -660,8 +660,9 @@ module.exports = (app, passport) => {
// return true
//}

return false
//return false

return true;
}

const __prepare_camp_files = (camp, user) => {
Expand Down

0 comments on commit 11c4dd0

Please sign in to comment.