Commit faecb91c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add right management

parent 6898184a
......@@ -497,8 +497,9 @@ class tx_nG6_eid {
$email = trim(t3lib_div::_GP('email'));
$password = trim(t3lib_div::_GP('password'));
$cruser_id = trim(t3lib_div::_GP('creator'));
$pid = trim(t3lib_div::_GP('pid'));
tx_nG6_db::create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id);
tx_nG6_db::create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid);
// find the new user id
$new_id = tx_nG6_db::get_user_id_by_username($user_name);
......
......@@ -1437,12 +1437,12 @@ class tx_nG6_db {
*
* @param array $user_datas the user array
*/
function create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id){
function create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid){
// Create new user
$user_datas = array(
'username' => $user_name,
'pid' => 8,
'pid' => $pid,
'first_name' => $first_name,
'last_name' => $last_name,
'email' => $email,
......
......@@ -176,6 +176,7 @@ class tx_nG6_pi1 extends tslib_pibase {
$smarty->assign('data_folder', $this->conf["data"]);
$smarty->assign('server_name', $this->conf["server_name"]);
$smarty->assign('project_ids', substr($project_ids,0,-1));
$smarty->assign('pid', $this->conf['pidList']);
// If it's a single project, add runs and analysis information
if (count($projects) == 1) {
......
......@@ -49,6 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<input type="hidden" id="user_login" value="{$llang.user_login}" />
<input type="hidden" id="user_pwd" value="{$llang.user_pwd}" />
<input type="hidden" id="user_id" value="{$user_id}" />
<input type="hidden" id="pid" value="{$pid}" />
<input type="hidden" id="user_name" value="{$llang.user_name}" />
<input type="hidden" id="user_last_name" value="{$llang.last_name}" />
......
......@@ -1044,6 +1044,7 @@ $(function () {
val_url += "&group=" + $("#user_group_val").val();
val_url += "&project_id=" + $("#current_project_id").val();
val_url += "&right=" + $("#cbb_user_right").val();
val_url += "&pid=" + $("#pid").val();
$.ajax({
url: val_url,
......
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