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
a6d8d863
Commit
a6d8d863
authored
6 years ago
by
Andrei Cioromila
Browse files
Options
Downloads
Patches
Plain Diff
fix(authsome): Update collections status for /collections route
parent
637a6cdd
No related branches found
No related tags found
2 merge requests
!110
Sprint 21 Features
,
!78
Fix/hin 1022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/xpub-faraday/config/authsome-helpers.js
+13
-1
13 additions, 1 deletion
packages/xpub-faraday/config/authsome-helpers.js
with
13 additions
and
1 deletion
packages/xpub-faraday/config/authsome-helpers.js
+
13
−
1
View file @
a6d8d863
...
...
@@ -239,7 +239,19 @@ const getCollections = async ({ user, models }) => {
role
:
up
.
role
,
})
return
stripedColl
.
coll
const
role
=
get
(
up
,
'
role
'
,
'
author
'
)
let
visibleStatus
=
get
(
statuses
,
`
${
status
}
.
${
role
}
.label`
)
if
(
role
===
'
reviewer
'
&&
status
!==
'
reviewersInvited
'
)
{
visibleStatus
=
await
updateReviewerVisibleStatusByInvitation
({
collection
,
FragmentModel
:
models
.
Fragment
,
user
,
})
}
return
{
...
stripedColl
.
coll
,
visibleStatus
}
}),
)).
filter
(
Boolean
)
}
...
...
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