I have two different user permission levels: editor and publisher (non-admin users) setup in my lib\modules\apostrophe-users\index.js definition:
groups: [
{
title: 'editor',
permissions: [ 'edit-apostrophe-blog' ]
},
{
title: 'publisher',
permissions: [ 'edit-apostrophe-blog' ]
},
{
title: 'admin',
permissions: [ 'admin' ]
}
],
I'd like to only allow users in the "publisher" group to see and edit the article > meta "Published" status (yes or no), as well as to see and use the "Trash" item (editors cannot publish or delete articles).
The docs show the apos.permissions.can method here, http://apostrophecms.org/docs/tutorials/intermediate/permissions.html, but is there an easier way to just show or hide these admin elements based on a user's permission/group level? Thanks.