Version 0.7.2c - Fix des utilisateurs
This commit is contained in:
1 parent
1364601ccf
commit
3a4d060060
1 file changed
+6
-3
@@ -60,10 +60,10 @@ settingsBtn.addEventListener("click", () => {
|
|||||||
for(var user of data) {
|
for(var user of data) {
|
||||||
|
|
||||||
|
|
||||||
const adminBtn = document.getElementById(data.indexOf(user) + "_admin")
|
var adminBtn = document.getElementById(data.indexOf(user) + "_admin")
|
||||||
const deleteBtn = document.getElementById(data.indexOf(user) + "_delete")
|
var deleteBtn = document.getElementById(data.indexOf(user) + "_delete")
|
||||||
|
|
||||||
|
|
||||||
|
if(adminBtn) {
|
||||||
|
|
||||||
if(data[data.indexOf(user)].admin == true) {
|
if(data[data.indexOf(user)].admin == true) {
|
||||||
|
|
||||||
@@ -88,6 +88,9 @@ settingsBtn.addEventListener("click", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user