Skip to content

Commit 186ca3f

Browse files
committed
update guide
1 parent 1bca8ee commit 186ca3f

File tree

3 files changed

+37
-15
lines changed

3 files changed

+37
-15
lines changed

pegr/grails-app/conf/application.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ grails.plugin.springsecurity.logout.postOnly=false
122122

123123
grails.plugin.springsecurity.providerNames = ['daoAuthenticationProvider', 'preAuthenticatedAuthenticationProvider', 'anonymousAuthenticationProvider', 'rememberMeAuthenticationProvider']
124124

125-
grails.plugin.springsecurity.securityConfigType = 'InterceptUrlMap'
125+
grails.plugin.springsecurity.securityConfigType = grails.plugin.springsecurity.SecurityConfigType.InterceptUrlMap
126+
//grails.plugin.springsecurity.securityConfigType = 'InterceptUrlMap'
126127
grails.plugin.springsecurity.interceptUrlMap = [
127128
[pattern: '/assets/**', access: ['permitAll']],
128129
[pattern: '/**/js/**', access: ['permitAll']],

pegr/grails-app/views/help/index.gsp

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,66 @@
1313
<body>
1414
<div class="container-fluid">
1515
<div class="col-sm-9">
16+
<div id="what">
17+
<h3>What is PEGR</h3>
18+
<p>Platform for Epigenomic and Genomic Research (PEGR) is a web service platform that logs metadata for samples and sequencing experiment, manages the data processing workflows, and provides reporting and visualization. PEGR links together people, samples, protocols, sequencer and bioinformatics computation. The development home of PEGR is at <a href="https://github.com/seqcode/pegr">https://github.com/seqcode/pegr</a>, where you can find a quick-start guide and more information at <a href="https://github.com/seqcode/pegr/wiki">wiki</a>.</p>
19+
</div>
20+
<div id="role">
21+
<h3>Platform-wide Roles</h3>
22+
<p>There are three platform-wide roles.</p>
23+
<ol>
24+
<li>Admin: admins have almost all the authorizations (read and write access) except for the access to personal password and API keys.</li>
25+
<li>Member: members have read access to all the projects, inventory, lab protocols, experiment records, sequencing run reports and samples. They will have additional write access based on their <a href="#project-role">project roles</a> and their ownership to specific inventory, protocols and experiment records. </li>
26+
<li>Guest: guests are only able to see their personal information and the projects they have been assigned to (see <a href="#project-role">Project Roles</a>).</li>
27+
</ol>
28+
</div>
1629
<div id="project-role">
17-
<h3>Project Role</h3>
30+
<h3>Project Roles</h3>
1831
<table class="table-bordered">
1932
<thead>
20-
<th></th>
21-
<th>Owner</th>
22-
<th>Participant</th>
23-
<th>Guest</th>
24-
<th>None</th>
33+
<th>Project Role</th>
34+
<th>View</th>
35+
<th>Add/remove/edit samples</th>
36+
<th>Edit project name, description, funding</th>
37+
<th>Add/remove user, edit role</th>
2538
</thead>
2639
<tbody>
2740
<tr>
28-
<td>View</td>
41+
<td>Owner</td>
42+
<td>&#10003;</td>
2943
<td>&#10003;</td>
3044
<td>&#10003;</td>
3145
<td>&#10003;</td>
32-
<td></td>
3346
</tr>
3447
<tr>
35-
<td>Add/remove/edit samples</td>
48+
<td>Participant</td>
3649
<td>&#10003;</td>
3750
<td>&#10003;</td>
3851
<td></td>
3952
<td></td>
4053
</tr>
4154
<tr>
42-
<td>Edit project name, description, funding</td>
55+
<td>Guest</td>
4356
<td>&#10003;</td>
4457
<td></td>
4558
<td></td>
4659
<td></td>
4760
</tr>
4861
<tr>
49-
<td>Add/remove user, edit role</td>
50-
<td>&#10003;</td>
62+
<td>None</td>
63+
<td></td>
5164
<td></td>
5265
<td></td>
5366
<td></td>
5467
</tr>
5568
</tbody>
5669
</table>
70+
<p>Note that: </p>
71+
<ol>
72+
<li>These permissions are per project, i.e. an "Owner" in one project may be a participant in another.</li>
73+
<li>Platform-wide admins also have all the authorizations to any project (the same access level as a project owner), and platform-wide members have all the read access to any project (the same access level as a project guest).</li>
74+
</ol>
75+
5776
</div>
5877
<div id="barcode-inventory">
5978
<h3>Inventory Tracking</h3>
@@ -137,7 +156,9 @@
137156
<nav class="col-sm-3">
138157
<h4>Menu</h4>
139158
<ul id="menu" data-spy="affix" data-offset-top="205">
140-
<li><a href="#project-role">Project Role</a></li>
159+
<li><a href="#what">What is PEGR</a></li>
160+
<li><a href="#role">Platform-wide Roles</a></li>
161+
<li><a href="#project-role">Project Roles</a></li>
141162
<li><a href="#barcode-inventory">Inventory Tracking</a></li>
142163
<li><a href="#barcode-protocol">Protocol and Protocol Group</a></li>
143164
<li><a href="#barcode-experiment">Experiment Tracking</a></li>

pegr/grails-app/views/layouts/main.gsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<li id="nav-experiments"><g:link controller="protocolInstanceBag" action="list">Experiments</g:link></li>
2525
<li id="nav-sequencing"><g:link controller="sequenceRun" action="index">Sequencing Runs</g:link></li>
2626
<li id="nav-samples"><g:link controller="sample" action="all">Samples</g:link></li>
27-
<li id="nav-guide"><g:link controller="help" action="index">Guide</g:link></li>
2827
</sec:ifAnyGranted>
28+
<li id="nav-guide"><g:link controller="help" action="index">Guide</g:link></li>
2929
<sec:ifAnyGranted roles="ROLE_ADMIN">
3030
<li id="nav-admin"><g:link controller="admin" action="index">Admin</g:link></li>
3131
</sec:ifAnyGranted>

0 commit comments

Comments
 (0)