Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ng6
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
genotoul-bioinfo
ng6
Commits
b1716325
Commit
b1716325
authored
Oct 28, 2019
by
Romain Therville
🐭
Browse files
Options
Browse Files
Download
Plain Diff
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
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ui/nG6/pi1/class.tx_nG6_pi1.php
ui/nG6/pi1/class.tx_nG6_pi1.php
+1
-0
ui/nG6/pi1/project_view.tpl
ui/nG6/pi1/project_view.tpl
+9
-3
No files found.
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