Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
2676bb4c
Commit
2676bb4c
authored
6 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
remove coll after HE declined
parent
fb9ec143
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Agree/Decline to work on a manuscript
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/xpub-faraday/config/authsome-helpers.js
+1
-1
1 addition, 1 deletion
packages/xpub-faraday/config/authsome-helpers.js
packages/xpub-faraday/config/authsome-mode.js
+6
-2
6 additions, 2 deletions
packages/xpub-faraday/config/authsome-mode.js
with
7 additions
and
3 deletions
packages/xpub-faraday/config/authsome-helpers.js
+
1
−
1
View file @
2676bb4c
...
...
@@ -19,7 +19,7 @@ module.exports = {
coll
.
visibleStatus
=
statuses
[
coll
.
status
].
private
}
},
filterRefused
Reviewer
s
:
(
coll
,
user
)
=>
{
filterRefused
Invitation
s
:
(
coll
,
user
)
=>
{
const
matchingInv
=
coll
.
invitations
.
find
(
inv
=>
inv
.
userId
===
user
.
id
)
if
(
matchingInv
===
undefined
)
return
null
if
(
matchingInv
.
hasAnswer
===
true
&&
!
matchingInv
.
isAccepted
)
return
null
...
...
This diff is collapsed.
Click to expand it.
packages/xpub-faraday/config/authsome-mode.js
+
6
−
2
View file @
2676bb4c
...
...
@@ -35,8 +35,12 @@ async function teamPermissions(user, operation, object, context) {
}
helpers
.
setPublicStatuses
(
coll
,
matchingCollPerm
)
helpers
.
parseReviewerAuthors
(
coll
,
matchingCollPerm
)
if
([
'
reviewer
'
].
includes
(
matchingCollPerm
.
permission
))
{
return
helpers
.
filterRefusedReviewers
(
coll
,
user
)
if
(
[
'
reviewer
'
,
'
handlingEditor
'
].
includes
(
matchingCollPerm
.
permission
,
)
)
{
return
helpers
.
filterRefusedInvitations
(
coll
,
user
)
}
return
coll
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment