问题
I'm trying to grant editor permissions on specific pieces for any editor. Try applying as described in apostrophe-permissions and permissionsFields. However, I still can't get my editors to be able to edit any piece they want, even if they haven't created it.
This is what I have in my app.js
:
'apostrophe-users': {
groups: [
{
title: 'editor',
permissions: [ 'edit-placementGuide', 'edit-market','edit-email-template' ]
},
{
title: 'admin',
permissions: [ 'admin' ]
}
]
},
Pieces appeared on the AdminBar, Manage modals can be opened, but none of the pieces are listed on the modals, or can be edited.
What am I missing? Does something need to be set up at the lib\modules\piece-name\index.js
?
Thanks,
D
回答1:
admin-placementGuide is the right choice to have total control of one type. edit- is the right to make one and, if enabled, to be assigned rights to others.
来源:https://stackoverflow.com/questions/49767506/editor-permission-for-pieces