diff --git a/admin/operatorlist.php b/admin/operatorlist.php index 16821cbc..150bb5ac 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -72,7 +72,11 @@ if (isset($_POST['submit'])) SET users_name = " . $db->qstr($_POST['username']) . ", email = " . $db->qstr($_POST['email']) . ", full_name = " . $db->qstr($_POST['firstName']) . ", - superadmin = $superadmin"; + superadmin = $superadmin, + create_survey = $superadmin, + configurator = $superadmin, + manage_template = $superadmin, + manage_label = $superadmin"; if (!empty($_POST['password'])) { diff --git a/admin/operators.php b/admin/operators.php index 70efe53d..75380c2c 100644 --- a/admin/operators.php +++ b/admin/operators.php @@ -118,8 +118,8 @@ if (isset($_POST['operator']) && isset($_POST['adduser'])) include_once("../include/limesurvey/admin/classes/core/sha256.php"); //Insert into lime_users - $sql = "INSERT INTO " . LIME_PREFIX . "users (`users_name`,`password`,`full_name`,`parent_id`,`superadmin`,`email`,`lang`) - VALUES ($operator, '" . SHA256::hashing($_POST['password']) . "',$firstname,1,$admin,$email,'auto')"; + $sql = "INSERT INTO " . LIME_PREFIX . "users (`users_name`,`password`,`full_name`,`parent_id`,`superadmin`,`create_survey`,`configurator`,`manage_template`,`manage_label`,`email`,`lang`) + VALUES ($operator, '" . SHA256::hashing($_POST['password']) . "',$firstname,1,$admin,$admin,$admin,$admin,$admin,$email,'auto')"; $db->Execute($sql);