Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
I confirm the bug at version 4.23.2 ‘Admin Menu Access’ module. It removes blocked menu item with additional parameters, like ‘Events-Settings’
edit.php?post_type=event&page=events-manager-options
but allows access it via direct URL.
This bug will be fixed by upcoming version 4.23.3 (this week).Vladimir
KeymasterHi,
‘Apply to All sites’ option at the main site works for the currently selected role only. It’s not related to the additional modules (like ‘Widgets’) data.
Widgets, admin menu items available at different single sites may be different as single sites may have different set of activated plugins and themes. So I did not include network update feature for the additional modules from very begin. I see with time that some clients (including you) need such feature. I will add it module by module.
If you open ‘User Role Editor’ at the ‘Network Admin – Users’ you should see ‘Update Network’ button there. It opens dialog where you may add ‘Widgets’ restrictions data to the update process:
Code was written this way:
Widgets added by single site admin (superadmin) should be shown 1st. Widgets added by users should be shown below.Could you describe in details your scenario in order I may test it myself and develop a fix if needed? What widgets you added as superadmin, what widgets as a user? What role has your non-administrator user who adds widgets (screenshot)?
I don’t have on hands a solution to block sidebars. I will check what we can do with it.
Vladimir
KeymasterHi,
ACF Pro uses to add its meta boxes not ‘add_metaboxes’ action as WordPress recommends, but ‘admin_head’ action. This was a reason why URE Pro missed them.
Thanks for your help in discovering this issue.
I included the fix for it to the upcoming version 4.23.3. I plan to publish it this week.Vladimir
KeymasterHi,
If you blocked widgets at Network Admin this restrictions are applied for the main site. In order to restrict widgets for the 3rd site, you should open ‘User Role Editor’ at the 3rd site directly.
Do you test your settings for the restricted site?
Vladimir
KeymasterHi,
1st, correct the typo, you should have ‘Complete’ instead of ‘Complet’ in the 2nd login expression.
2nd, role shown by WordPress as a ‘primary’ role should be the 1st in the roles array (have index 0). So remove all roles from the user, then add ‘instructor’ role. It will become a primary this way. Then add ‘participant’ role back as a secondary role.
$user->set_role('instructor'); $user->add_role('participant');
Vladimir
KeymasterHi,
‘Other Roles’ section is shown, if this boolean filter ‘ure_show_additional_capabilities_section’ returns true (by default). It’s hidden in case this filter returns false.
Vladimir
KeymasterJawad,
Upcoming (in a couple of days I hope) 4.23.3 bug fix release will not contain this feature yet. I will include it the the 4.24.
I will include these code snippets to the Pro version 4.24 as the options (inactive by default). So you will can safely install plugin update, remove your own copy of code from functions.php and then turn on the correspondent option at the User Role Editor Settings.
Vladimir
KeymasterHi Jawad,
‘shop_web_hook’ is a custom post type introduced by WooCommerce:
https://docs.woothemes.com/document/webhooks/Please remind, for what question you did not get the answer.
Vladimir
KeymasterI think that Android and iOS applications both should work the same way in relation access to WordPress data.
Try to clear all cached data at your iOS device.Vladimir
KeymasterHerbert,
Do you Сolleagues use this application to post to WordPress from mobile devices?
Vladimir
KeymasterHi Herbert,
Thanks for the feedback.
I do not have a solution for the access restrictions problem with WP App right now. I will investigate it and try to offer the solution ASAP.
Vladimir
KeymasterIn relation to the screenshots with capabilities:
– Is it possible that you have different set of plugins activated on these sites?Vladimir
KeymasterIn order to remove ‘Emails->Customize’ menu item use this code:
add_action('admin_menu', 'my_remove_buddypress', 20); function my_remove_buddypress() { if (current_user_can('your-own-role')) { remove_submenu_page('edit.php?post_type=bp-email', 'bp-emails-customizer-redirect'); } }
Vladimir
KeymasterHello,
I confirm the bug with menu items similar to BuddyPress. It’s fixed at upcoming version 4.23.3. I plan to publish it in a couple of days.
Vladimir
KeymasterOrders menu is protected by ‘edit_shop_orders’ capability. It’s possible to prohibit new order creation if you activate ‘create’ capability at User Role Editor Settings.
But ‘edit_shop_orders’ capability is enough to ‘process’ and ‘complete’ the order. The only way to allow a read-only access to the WooCommerce orders is to use this filter from WooCommerce code:
$actions = apply_filters( 'woocommerce_admin_order_actions', $actions, $the_order );
Your function for this filter should return empty $actions array for ‘editor’ role in order to make for them read-only access.
Let me know if you need further help.
-
AuthorPosts