Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
90b3f70d
Commit
90b3f70d
authored
Sep 12, 2012
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
9e03972c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
90b3f70d
...
...
@@ -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
::
ge
t_user_
id_
by_username
(
$user_name
);
$new_id
=
tx_nG6_db
::
selec
t_user_by_username
(
$user_name
);
// authorize new access
tx_nG6_db
::
add_access_to_project
(
$new_id
,
$project_id
,
$right_id
);
...
...
ui/nG6/res/js/tx_nG6_pi1.js
View file @
90b3f70d
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment