mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01:00
fixed #96
Querysets used to populate form fields are more filtered (ie. the default admin is ignored, as the current logged in user). see #92 More protection against errors that can happen when defining new permissions.
This commit is contained in:
@@ -349,7 +349,7 @@ div.row {
|
||||
|
||||
div.row label {
|
||||
float: left;
|
||||
width: 200px;
|
||||
width: 300px;
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
|
||||
+6
-1
@@ -33,7 +33,12 @@ window.addEvent("domready", function() {
|
||||
generic_submit(this, event, "aliasform", alias_submit);
|
||||
};
|
||||
permission_submit = function(event) {
|
||||
generic_submit(this, event, "permform", permission_submit);
|
||||
generic_submit(this, event, "permform", permission_submit, function() {
|
||||
if ($defined($("id_domain"))) {
|
||||
$("id_domain").options[0].setProperty("selected", "selected");
|
||||
domadminform_init();
|
||||
}
|
||||
});
|
||||
};
|
||||
chpassword_submit = function(event) {
|
||||
generic_submit(this, event, "chpwdform", chpassword_submit);
|
||||
|
||||
Reference in New Issue
Block a user