Skip to content

Commit b998c50

Browse files
committed
Fixed: FS#527 - Client can have a module for Startmodule even if it is disabled
1 parent 2c05fad commit b998c50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interface/web/admin/users_edit.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ function onBeforeInsert() {
5757
$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
5858
}
5959
}
60+
61+
function onBeforeUpdate() {
62+
global $app, $conf;
63+
64+
if(!in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) {
65+
$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
66+
}
67+
}
6068

6169
}
6270

0 commit comments

Comments
 (0)