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
9e465248
Commit
9e465248
authored
Jul 06, 2011
by
Jerome Mariette
Browse files
fixe a bug for unlogged users (hide and unhide shown)
parent
62a6d5c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
9e465248
...
...
@@ -191,7 +191,7 @@ class tx_nG6_pi1 extends tslib_pibase {
$content
.
=
'<tr id="project_'
.
$project_values
[
'id'
]
.
'">'
;
// projects updates possibility depends on projects rights (show checkboxes or not)
if
(
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'project'
,
$project_values
[
'id'
])
)
{
if
(
$GLOBALS
[
'TSFE'
]
->
loginUser
&&
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'project'
,
$project_values
[
'id'
])
)
{
$content
.
=
'<td '
.
$hidden
.
'><center><input type="checkbox" name="opt_checkbox" value="project_'
.
$project_values
[
'id'
]
.
'"></center></td>'
;
}
else
{
$content
.
=
'<td name="empty_checkbox"></td>'
;
...
...
@@ -310,7 +310,7 @@ class tx_nG6_pi1 extends tslib_pibase {
// Add the row information
$content
.
=
'<tr id="run_'
.
$run_values
[
"id"
]
.
'">'
;
// runs updates possibility depends on runs rights (show checkboxes or not)
if
(
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'run'
,
$run_values
[
'id'
])
)
{
if
(
$GLOBALS
[
'TSFE'
]
->
loginUser
&&
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'run'
,
$run_values
[
'id'
])
)
{
$content
.
=
'<td '
.
$hidden
.
' ><center><input type="checkbox" name="opt_checkbox" value="run_'
.
$run_values
[
"id"
]
.
'"></center></td>'
;
}
else
{
$content
.
=
'<td name="empty_checkbox"></td>'
;
...
...
@@ -498,7 +498,7 @@ class tx_nG6_pi1 extends tslib_pibase {
$content
.
=
'<tr id="analyze_'
.
$analyse_values
[
"id"
]
.
'">'
;
// analyzes updates possibility depends on analyzes rights (show checkboxes or not)
if
(
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'analyze'
,
$analyse_values
[
'id'
])
)
{
if
(
$GLOBALS
[
'TSFE'
]
->
loginUser
&&
tx_nG6_db
::
is_super_user
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'usergroup'
],
'analyze'
,
$analyse_values
[
'id'
])
)
{
$content
.
=
'<td '
.
$hidden
.
' ><center><input type="checkbox" name="opt_checkbox" value="analyze_'
.
$analyse_values
[
"id"
]
.
'"></center></td>'
;
}
else
{
$content
.
=
'<td name="empty_checkbox"></td>'
;
...
...
@@ -681,4 +681,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/nG6/pi1
include_once
(
$TYPO3_CONF_VARS
[
TYPO3_MODE
][
'XCLASS'
][
'ext/nG6/pi1/class.tx_nG6_pi1.php'
]);
}
?>
?>
\ No newline at end of file
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