From 8899e9469982954ff393a4e98afeb03d4c1d1743 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Mon, 30 Jan 2012 15:10:31 -0500 Subject: [PATCH] add back authorization to schools --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index b029025..6b37281 100644 --- a/app.js +++ b/app.js @@ -370,13 +370,13 @@ function loadSchool( req, res, next ) { //sys.puts(school); if( school ) { req.school = school; - //req.school.authorized = authorized; // If a school is found, the user is checked to see if they are // authorized to see or interact with anything related to that // school. - //school.authorize( user, function( authorized ){ - //}); + school.authorize( user, function( authorized ){ + req.school.authorized = authorized; + }); next(); } else { // If no school is found, display an appropriate error. -- 2.25.1