Skip to content

Commit dbc57ad

Browse files
unknownunknown
authored andcommitted
#5-08-2024
1 parent d033d49 commit dbc57ad

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

appsTeacher/security/app.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ module.exports = function init(site) {
9090
delete where["search"];
9191
}
9292
where["id"] = { $ne: 1 };
93-
if ((teacherId = site.getTeacherSetting(req))) {
94-
where["teacherId"] = teacherId;
95-
} else {
96-
where["host"] = site.getHostFilter(req.host);
97-
}
93+
where["type"] = { $ne: 'student' };
94+
// if ((teacherId = site.getTeacherSetting(req))) {
95+
// where["teacherId"] = teacherId;
96+
// } else {
97+
// where["host"] = site.getHostFilter(req.host);
98+
// }
99+
100+
98101

99102
site.security.getUsers(
100103
{

0 commit comments

Comments
 (0)