mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
Issue #2031 An admin can't set another user as an admin/webmaster. UIX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user