We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d033d49 commit dbc57adCopy full SHA for dbc57ad
1 file changed
appsTeacher/security/app.js
@@ -90,11 +90,14 @@ module.exports = function init(site) {
90
delete where["search"];
91
}
92
where["id"] = { $ne: 1 };
93
- if ((teacherId = site.getTeacherSetting(req))) {
94
- where["teacherId"] = teacherId;
95
- } else {
96
- where["host"] = site.getHostFilter(req.host);
97
- }
+ where["type"] = { $ne: 'student' };
+ // if ((teacherId = site.getTeacherSetting(req))) {
+ // where["teacherId"] = teacherId;
+ // } else {
+ // where["host"] = site.getHostFilter(req.host);
98
+ // }
99
+
100
101
102
site.security.getUsers(
103
{
0 commit comments