Commit 90efa278 authored by Gerald Salin's avatar Gerald Salin
Browse files

only display the unhide projects

parent 79d52bcc
......@@ -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(
......
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