...
|
...
|
@@ -23,7 +23,7 @@ exports.index = (req, res, next) => { |
|
|
|
|
|
studentsModel.getStudentsData(channel, req).then(result => {
|
|
|
|
|
|
if ('isStudent' in req.user && req.user.isStudent === 1) {
|
|
|
if ('isStudent' in req.user && parseInt(req.user.isStudent, 10) === 1) {
|
|
|
result.realData.verifyRusult = {isStudent: true};
|
|
|
}
|
|
|
|
...
|
...
|
|