Skip to content
Snippets Groups Projects
Commit ddcc295b authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

show menu only to admin

parent c13bf821
No related branches found
No related tags found
No related merge requests found
...@@ -787,6 +787,7 @@ module.exports = { ...@@ -787,6 +787,7 @@ module.exports = {
const mode = new XpubCollabraMode(userId, operation, object, context) const mode = new XpubCollabraMode(userId, operation, object, context)
return mode.canViewPage() return mode.canViewPage()
}, },
'can view teams menu': () => false,
create: (userId, operation, object, context) => { create: (userId, operation, object, context) => {
const mode = new XpubCollabraMode(userId, operation, object, context) const mode = new XpubCollabraMode(userId, operation, object, context)
......
...@@ -8,15 +8,19 @@ module.exports = { ...@@ -8,15 +8,19 @@ module.exports = {
teams: { teams: {
seniorEditor: { seniorEditor: {
name: 'Senior Editors', name: 'Senior Editors',
permissions: '',
}, },
handlingEditor: { handlingEditor: {
name: 'Handling Editors', name: 'Handling Editors',
permissions: '',
}, },
managingEditor: { managingEditor: {
name: 'Managing Editors', name: 'Managing Editors',
permissions: '',
}, },
reviewer: { reviewer: {
name: 'Reviewer', name: 'Reviewer',
permissions: '',
}, },
}, },
}, },
......
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