Commit a0a5a5c4 authored by Giannis Kopanas's avatar Giannis Kopanas

Merge branch 'fix-authsome-teams' into 'master'

fix(authosme): ad team authosme

See merge request !240
parents 686d7582 b2d0abe8
Pipeline #8514 passed with stages
in 6 minutes and 29 seconds
......@@ -102,7 +102,7 @@ class XpubCollabraMode {
}
/**
* Checks if the user is an author, as represented with the owners
* Checks if the user is an admin, as represented with the owners
* relationship
*
* @returns {boolean}
......@@ -585,6 +585,11 @@ class XpubCollabraMode {
async canViewPage() {
this.user = await this.context.models.User.find(this.userId)
const { path, params } = this.object
if (path === '/teams') {
return !!this.isAdmin()
}
if (path === '/projects/:project/versions/:version/submit') {
return this.checkPageSubmit(params)
}
......
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