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
90efa278
Commit
90efa278
authored
Jun 21, 2011
by
Gerald Salin
Browse files
only display the unhide projects
parent
79d52bcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_db.php
View file @
90efa278
...
...
@@ -45,12 +45,15 @@ class tx_nG6_db {
function
select_all_user_projects
(
$user_group
,
$orderby
=
''
,
$limit
=
''
)
{
$projects
=
array
();
// If the user is not logged on display demonstration project
$where
=
'tx_nG6_project.hidden=0 AND '
;
if
(
!
$GLOBALS
[
'TSFE'
]
->
loginUser
)
{
$where
=
'fe_group=0'
;
$where
.
=
'fe_group=0'
;
}
else
{
$where
=
'fe_group IN ('
.
tx_nG6_db
::
get_user_groups
(
$user_group
)
.
')'
;
$where
.
=
'fe_group IN ('
.
tx_nG6_db
::
get_user_groups
(
$user_group
)
.
')'
;
}
$orderby
=
'tx_nG6_project.name ASC'
;
//First, get the analyzis project-scale
$queryParts
=
array
(
...
...
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