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
db646afb
Commit
db646afb
authored
Oct 13, 2015
by
Penom Nom
Browse files
No commit message
No commit message
parent
aaf771d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
db646afb
...
...
@@ -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'
))
{
...
...
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