Showing
1 changed file
with
1 additions
and
1 deletions
@@ -23,7 +23,7 @@ exports.index = (req, res, next) => { | @@ -23,7 +23,7 @@ exports.index = (req, res, next) => { | ||
23 | 23 | ||
24 | studentsModel.getStudentsData(channel, req).then(result => { | 24 | studentsModel.getStudentsData(channel, req).then(result => { |
25 | 25 | ||
26 | - if ('isStudent' in req.user && req.user.isStudent === 1) { | 26 | + if ('isStudent' in req.user && parseInt(req.user.isStudent, 10) === 1) { |
27 | result.realData.verifyRusult = {isStudent: true}; | 27 | result.realData.verifyRusult = {isStudent: true}; |
28 | } | 28 | } |
29 | 29 |
-
Please register or login to post a comment