Issue #2031 An admin can't set another user as an admin/webmaster. UIX

This commit is contained in:
Willy "Linty
2023-11-06 12:39:20 +01:00
parent 732c4b2a60
commit a907588cf3
@@ -98,6 +98,10 @@ $(".icon-help-circled").tipTip({
});
$(document).ready(function() {
// Only webmaster can set admin or webmaster to others users
if (connected_user_status !== 'webmaster') {
$('select[name="status"] option[value="webmaster"], select[name="status"] option[value="admin"]').attr("disabled", true);
}
// We set the applyAction btn click event here so plugins can add cases to the list
// which is not possible if this JS part is in a JS file
// see #1571 on Github