Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Merge requests
!351
Master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Master
master
into
dev_k8s
Overview
2
Commits
41
Pipelines
0
Changes
47
Merged
Audrey Hamelers
requested to merge
master
into
dev_k8s
3 years ago
Overview
2
Commits
41
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
8b509b23
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8b509b23
permissions check
· 8b509b23
Audrey Hamelers
authored
3 years ago
config/authsome.js
+
4
−
2
Options
@@ -30,7 +30,8 @@ const authorisationMap = {
admin
:
states
,
submitter
:
states
.
slice
(
0
,
states
.
length
-
1
),
reviewer
:
states
.
slice
(
0
,
states
.
length
-
1
),
tagger
:
[
'
tagging
'
,
'
xml-triage
'
],
// taggers must be allowed to read in error state or cannot receive email
tagger
:
[
'
tagging
'
,
'
file-error
'
],
'
external-admin
'
:
[
'
xml-qa
'
],
},
entityAuthorisationAttribute
:
'
status
'
,
@@ -50,7 +51,7 @@ const authorisationMap = {
roles
:
{
admin
:
states
,
submitter
:
[
'
INITIAL
'
,
'
READY
'
,
'
submission-error
'
],
reviewer
:
[
'
in-review
'
,
'
xml-review
'
],
reviewer
:
[
'
submission-error
'
,
'
in-review
'
,
'
xml-review
'
],
tagger
:
[
'
tagging
'
],
'
external-admin
'
:
[
'
xml-qa
'
],
},
@@ -71,6 +72,7 @@ const authorisationMap = {
roles
:
{
admin
:
states
,
submitter
:
states
,
// allow reviewer and external QA to delete reviews
reviewer
:
[
'
xml-review
'
],
tagger
:
[],
'
external-admin
'
:
[
'
xml-qa
'
],