Commit 90b3f70d authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 9e03972c
......@@ -469,7 +469,7 @@ class tx_nG6_eid {
print $json_res;
// add a new member on project
} else if ($type == 'new_user') {
} else if ($type == 'add_user') {
$part = trim(t3lib_div::_GP('part'));
$user_name = trim(t3lib_div::_GP('username'));
......@@ -509,7 +509,7 @@ class tx_nG6_eid {
if ($res_code == 0) {
// find the new user id
$new_id = tx_nG6_db::get_user_id_by_username($user_name);
$new_id = tx_nG6_db::select_user_by_username($user_name);
// authorize new access
tx_nG6_db::add_access_to_project($new_id, $project_id, $right_id);
......
......@@ -1161,7 +1161,7 @@ $(function () {
// send datas
if(!hasError) {
var val_url = "index.php?eID=tx_nG6&type=new_user";
var val_url = "index.php?eID=tx_nG6&type=add_user";
val_url += "&username=" + $("#user_name_val").val();
val_url += "&first_name=" + $("#first_name_val").val();
val_url += "&last_name=" + $("#last_name_val").val();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment