From: Seth Woodworth Date: Mon, 30 Jan 2012 20:10:31 +0000 (-0500) Subject: add back authorization to schools X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8899e9469982954ff393a4e98afeb03d4c1d1743;p=oweals%2Ffinalsclub.git add back authorization to schools --- 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.