Commit b2d0abe8 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(authosme): ad team authosme

parent 686d7582
Pipeline #8512 passed with stages
in 7 minutes and 36 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