related to #1403 removing guest from associable users in group manager

This commit is contained in:
Matthieu Leproux
2021-05-17 23:47:10 +02:00
parent 983f72db6a
commit 1a5d08f242
+5
View File
@@ -741,6 +741,11 @@ $(function() {
selectize.addOption({value:u.id, text:u.username})
})
idSearch = $("#UserList").attr("data-group_id");
for (const [key, value] of Object.entries(selectize.options)) {
if (value.username === "guest") {
selectize.removeOption(value.id);
}
}
$('.UsernameBlock').each(function(){
selectize.removeOption($(this).data("id"));
})