Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
I will try to help you as I return to office, at June, 29th.
Vladimir
KeymasterIt’s possible to modify a default bbPress access model using its custom filters:
‘bbp_map_reply_meta_caps’, ‘bbp_map_topic_meta_caps’.Vladimir
KeymasterHi,
bbPress uses a different model of work with topics and replies privileges comparing to the WordPress posts. While bbPress adds ‘delete_topics’, ‘delete_replies’ it really uses just ‘delete_others_topics’ (
includes/topics/capabilities.php, line #180) and ‘delete_others_replies’ (includes/replies/capabilities.php, line #162). So default bbPress permissions model does not allow to a user to delete his own content. User should have a ‘moderate’ or ‘delete_others_%’ capability to get access to delete operation. But with this access user can delete a content from any user/author.Vladimir
KeymasterHi Benny,
You helped me to find a bug in admin menu access add-on. Thanks. I will develop a fix next week as I return home from a short trip. It will take some time for testing before I can to publish the update.
A quick workaround is to add ‘edit_portfolios’ capability to the role and block all ‘Portrolio’ menu items via the same admin menu access add-on. I did this at your site and user with ‘Klant’ role does not have access to the ‘Portfolio’ menu.
Vladimir
KeymasterI reproduced the issue with ‘Portfolio post type’ plugin. I will investigate it and inform you about a result.
Vladimir
KeymasterHi Benny,
Can you share for me ‘My Testimonials’ plugin copy via dropbox or similar service. I will look on its permissions at my local development environment.
Vladimir
KeymasterYou are right, I updated my previous answer: at “Additonal Modules” tab.
Correct: while plugin is network activated you have one global for the whole network default access error message.
If you network deactivate plugin and activate it individually for selected subsites, you can have individual for every subsite settings.
Other option – input custom shortcode as a network global access error message template. Then built a message individual for subsite inside a PHP processing that shortcode.
Vladimir
KeymasterYou can set a default access error message at the “Setting->User Role Editor->Additional Modules” tab. URE will show it until you do not select ‘Show custom access error message’ for a restricted post at the post editor page.
Yes you can use shortcode inside content view access error message.
Vladimir
KeymasterThanks. I answered to you by email. Let me know if you need a further help.
I repeat my answer here if it will be useful for someone other:General steps when you don’t know what permissions are required for some admin menu items:
– Open Users->User Role Editor
– Select ‘Administrator’ role
– Open “Admin menu”
– Find needed menu item and look what capability protects it. “WP Quiz->Players” is protected by ‘manage_options”.
– Close “Admin menu” window
– Select other role
– Add required capability (‘manage_options’ in this case) to this role
– Update it.
– Open ‘Admin menu’ for this role
– Block unneeded menu items for this role.Vladimir
KeymasterA problem is related to the paid add-on: https://wpstorelocator.co/add-ons/csv-manager/
Right? I need its copy for testing (use dropbox or similar). My email: support [at-sign] role-editor.com
Show me a screenshot of your admin menu item selection for this role.Vladimir
KeymasterYes, I need to make a closer look at admin area. Send credentials to support [at-sign]role-editor.com
Show a screenshot with marked areas, to which you wish provide access for a client.Vladimir
KeymasterI needed WP Store Locator for testing. I thought it’s a paid product. I got it. Thanks.
Vladimir
KeymasterI suppose that you use “Block not selected” model. URE Pro allows to use just the exact URL you selected at menu items list. URL you showed contains additional parameter ‘section’. This is a reason, why URE blocks this URL and redirects user to the 1st available item from admin menu.
Workaround:
1) Use ‘Block selected’ model, if it’s not critical for you.
or
2) Send me plugin copy (via dropbox, etc.). I will send you a code for custom filter, which will allow for URE to use ‘section’ parameter with edit.php for this custom post type.Vladimir
KeymasterI mean active theme, not activate. So you need to insert a code into a functions.php file of the active theme.
Vladimir
KeymasterUnfortunately, WPL plugin uses ‘administrator’ role instead of some user capability in order to protect its menu.

Only users with ‘administrator’ role have access to this menu. It’s not possible to change this editing user roles.
If you send me this plugin copy, I will look into its source code. Some plugins add custom filter, which allows to change how menu is protected.
Workaround:
1)replace ‘administrator’ at plugin source code with some custom capability. Contact plugin developers in order they consider to make the same change with a next update.
2) “Admin menu editor” WordPress plugin, which allows to replace ‘capabilities’ which used during admin menu definition. -
AuthorPosts