Commit 6a030e2b authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

fix(authsome): no team member found fails

parent 0271ae81
Pipeline #7591 passed with stages
in 5 minutes and 31 seconds
......@@ -62,7 +62,7 @@ class XpubCollabraMode {
const memberships = await Promise.all(
this.user.teams.map(async teamId => {
const team = await this.context.models.Team.find(teamId)
if (!team) return [false]
return membershipCondition(team)
}),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment