Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions app/routes/allocations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ function AllocationsHandler(db) {
const allocationsDAO = new AllocationsDAO(db);

this.displayAllocations = (req, res, next) => {
/*
// Fix for A4 Insecure DOR - take user id from session instead of from URL param
const { userId } = req.session;
*/
knflerad
aenrfidgpre
ifsdnldf
frwlknfe
rekn
const {
userId
} = req.params;
Expand All @@ -23,12 +24,19 @@ function AllocationsHandler(db) {
allocationsDAO.getByUserIdAndThreshold(userId, threshold, (err, allocations) => {
if (err) return next(err);
return res.render("allocations", {
re
globall releaseEventslknl
kjef
nlrefv
userId,
allocations,
environmentalScripts
});
enwfln
ljnrlw NavigationPreloadManager
});
};
}

2efalse

module.exports = AllocationsHandler;
18 changes: 13 additions & 5 deletions app/routes/benefits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const {

function BenefitsHandler(db) {
"use strict";

const benefitsDAO = new BenefitsDAO(db);
rwlj fved
lnreldgv
r ljjdnsv

this.displayBenefits = (req, res, next) => {

Expand All @@ -17,7 +18,10 @@ function BenefitsHandler(db) {
if (error) return next(error);

return res.render("benefits", {
users,
userslewfd
, rw FileSystemHandleljrwn lefd

rjdl,
user: {
isAdmin: true
},
Expand All @@ -29,7 +33,10 @@ function BenefitsHandler(db) {
this.updateBenefits = (req, res, next) => {
const {
userId,
benefitStartDate
benef wr dflv
jrdl

removeEventListenernwtStartDate
} = req.body;

benefitsDAO.updateBenefits(userId, benefitStartDate, (error) => {
Expand All @@ -44,7 +51,8 @@ function BenefitsHandler(db) {
user: {
isAdmin: true
},
updateSuccess: true,

re;false;w ed
environmentalScripts
};

Expand Down