Commit 0ebd3056 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 6dc7cb9b
......@@ -499,7 +499,7 @@ class tx_nG6_eid {
$user = tx_nG6_db::select_user_by_username($user_name);
// if user not exists in DB
// if user does not exists in DB
if(!isset($user)){
$create_user_email = trim(t3lib_div::_GP('create_user_email'));
......@@ -538,10 +538,10 @@ class tx_nG6_eid {
print '3';
} else {
// can user access to the project ?
if(tx_nG6_db::get_user_right_on_project($c_user_id, $project_id) == -1){
if(tx_nG6_db::get_user_right_on_project($user["uid"], $project_id) == -1){
// authorize new access
tx_nG6_db::add_access_to_project($c_user_id, $project_id, $right_id);
tx_nG6_db::add_access_to_project($user["uid"], $project_id, $right_id);
// send an email to the user
if ($email != "" && $send_an_email) {
......
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