Skip to content
GitLab
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
0ebd3056
Commit
0ebd3056
authored
Sep 12, 2012
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
6dc7cb9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
0ebd3056
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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