Editor permission for pieces

左心房为你撑大大i 提交于 2019-12-11 18:36:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!