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
b1716325
Commit
b1716325
authored
Oct 28, 2019
by
Romain Therville
🐭
Browse files
Merge branch 'issue#126.2' into 'master'
Merge branch issue#126.2 with master See merge request
!59
parents
4f00bb7e
6a57665c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
b1716325
...
...
@@ -200,6 +200,7 @@ class tx_nG6_pi1 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
$smarty
->
assign
(
'server_url'
,
$this
->
conf
[
'server_url'
]);
$smarty
->
assign
(
'single_project_display'
,
$single_project_display
);
$smarty
->
assign
(
'is_ng6_admin'
,
tx_nG6_db
::
is_ng6_administrator
(
$user_id
)
||
tx_nG6_db
::
is_user_ng6_superadmin
(
$user_id
)
?
true
:
false
);
$smarty
->
assign
(
'is_ng6_superadmin'
,
tx_nG6_db
::
is_user_ng6_superadmin
(
$user_id
)
?
true
:
false
);
// If it's a single project, add runs and analysis information
if
(
$single_project_display
)
{
...
...
ui/nG6/pi1/project_view.tpl
View file @
b1716325
...
...
@@ -171,10 +171,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
||
$projects
[
key
(
$projects
)].
is_admin
||
$projects
[
key
(
$projects
)].
is_manager
||
(
$user_values.id
==
$user_id
)
||
$is_ng6_admin
}
||
$is_ng6_admin
}
<td><center><input
type=
"checkbox"
id=
"chk_user_
{
$user_values.id
}
"
value=
"user_
{
$user_values.id
}
"
/></center>
<input
type=
"hidden"
id=
"chk_cruser_
{
$user_values.id
}
"
value=
"
{
$user_values.cruser_id
}
"
/></td>
<input
type=
"hidden"
id=
"chk_updatablepwd_
{
$user_values.id
}
"
value=
"
{
$user_values.updatable_password
}
"
/></td>
{* If the current user is superadmin, it is allowed to update anyone's password. *}
{
if
$is_ng6_superadmin
}
<input
type=
"hidden"
id=
"chk_cruser_
{
$user_values.id
}
"
value=
"
{
$user_id
}
"
/></td>
<input
type=
"hidden"
id=
"chk_updatablepwd_
{
$user_values.id
}
"
value=
"1"
/></td>
{
else
}
<input
type=
"hidden"
id=
"chk_cruser_
{
$user_values.id
}
"
value=
"
{
$user_values.cruser_id
}
"
/></td>
<input
type=
"hidden"
id=
"chk_updatablepwd_
{
$user_values.id
}
"
value=
"
{
$user_values.updatable_password
}
"
/></td>
{/
if
}
{
else
}
<td></td>
{/
if
}
...
...
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