diff options
author | Marvin Borner | 2021-01-29 14:10:45 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-29 14:10:45 +0100 |
commit | aec1e8f2cd4c0fdedd200fc30094587c0834d372 (patch) | |
tree | 407946fbe687b252d4133067aa770e0ee24851b1 /profile/public/users.js | |
parent | 2eff2deb98280aa61241e06163c87155911bbfae (diff) | |
parent | 8637186a9f835972a5a0b96e4df1665d6d42557a (diff) |
Merge branch 'crop'
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") |