Templates CPT Not Available to "Shop Manager" role
Hello,
Can you please look at relaxing/changing your hard-coded permissions check within functions/post-types/class-mfn-post-type-template.php?
Line 29-31 states:
if( !current_user_can('editor') && !current_user_can('administrator') ){ return false; }
This then stops the "Shop Manager" role from editing templates - which is a higher role than "Editor".
Is there a need to hard-code this?
I would expect if someone wished to have granular control over editing CPTs, they'd use something like PublishPress Capability Manager plugin to disable that CPT.
Thanks
Comments
Hi,
I have passed this on to the dev team, and they answered me that we will add a filter that will allow to modify this in a child theme.
Checking user roles is necessary for security reasons.
Best regards
Thanks.
I note you hard code in other areas too, where specific roles are used.
Perhaps rather than roles, specific permissions - like edit_pages, manage_options and manage_woocommerce would be more appropriate?
We will consider your suggestion and look at how it would be best to implement it.
Best regards
Thank you!