diff options
author | Marvin Borner | 2021-01-29 14:10:17 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-29 14:10:17 +0100 |
commit | 8637186a9f835972a5a0b96e4df1665d6d42557a (patch) | |
tree | 5716f4d7095f675f6dc6ebffd68aa9fe701c74d4 /profile/public/users.js | |
parent | e83901076f3d15f5d601d53237f886b7bc34f50b (diff) |
idk
Diffstat (limited to 'profile/public/users.js')
-rw-r--r-- | profile/public/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile/public/users.js b/profile/public/users.js index 77bc85c..73f0e4a 100644 --- a/profile/public/users.js +++ b/profile/public/users.js @@ -2,7 +2,7 @@ function addUser(user) { const li = document.createElement("li"); li.textContent = `${user.name} ${user.middlename || ""} ${user.surname}`; li.addEventListener("click", () => window.location.assign(`./user.html?uid=${user.id}`)); - document.getElementById("class_" + user.class_id).appendChild(li); + if (user.class_id < 6) document.getElementById("class_" + user.class_id).appendChild(li); } fetch("/auth/api/list?class=all") |