Commit db646afb authored by Penom Nom's avatar Penom Nom
Browse files

No commit message

No commit message
parent aaf771d8
......@@ -317,13 +317,14 @@ class tx_nG6_pi1 extends tslib_pibase {
$smarty->security = true;
$smarty->security_settings['MODIFIER_FUNCS'] = array('count');
// is project admin
$is_project_admin = tx_nG6_db::is_project_administrator($GLOBALS['TSFE']->fe_user->user['uid'], $this->piVars['project_id']);
// First select the analyse
$analyse = tx_nG6_db::select_analyse($this->piVars['analyze_id']);
if (tx_nG6_db::user_is_authorized($user_id, $this->piVars['project_id'], $this->piVars['run_id'])) {
// is project admin
$is_project_admin = tx_nG6_db::is_project_administrator($GLOBALS['TSFE']->fe_user->user['uid'], $analyse['project_id']);
if (tx_nG6_db::user_is_authorized($user_id, $analyse['project_id'], $this->piVars['run_id'])) {
if ($is_project_admin || $analyse['hidden'] == "0") {
// Handle old fashion
if (file_exists($this->conf['data'].$analyse['directory'].'/index.html' )) {
......
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