Skip to content
Snippets Groups Projects
Commit 1e37bab6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

guest account cannot be removed from admin panel

parent fd35b152
No related branches found
No related tags found
3 merge requests!39112.0.4 into master,!39012.0.4 merged into 12.1.x,!384Resolve "don't allow to remove anonymous account"
Pipeline #
......@@ -252,7 +252,11 @@ UsersAdminPanel.prototype.userToTableRow = function (user, row) {
row[2] = user.getSurname();
row[3] = user.getEmail();
row[4] = "<button name='showEditDialog' data='" + user.getLogin() + "'><i class='fa fa-edit' style='font-size:17px'></i></button>";
row[5] = "<button name='removeUser' data='" + user.getLogin() + "'><i class='fa fa-trash-o' style='font-size:17px'></i></button>";
var disabled = "";
if (user.getLogin() === "anonymous") {
disabled = " disabled ";
}
row[5] = "<button name='removeUser' " + disabled + " data='" + user.getLogin() + "'><i class='fa fa-trash-o' style='font-size:17px'></i></button>";
return row;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment