Elevated permissions fix for moderators

2.59K viewsIssues
0

The anspress menu is only available to users with ‘delete_pages’ capability.  I a complex backend environment with multiple admins each performing different tasks, this privilege is too elevated.
Editing admin/anspress-admin.php and changing all instances of ‘delete_pages’ to ‘delete_questions’ allows a moderator to see the anspress menu without giving them the right to delete normal (or other type) pages.
By then adding the capability to edit, publish and delete questions and answers to the user’s role, it gives the moderator administrative rights over the anspress posts without giving them elevated access to other post types in WordPress.
Could you please add this to the core?

Asked question