Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
URE Pro does not apply any restrictions to users with ‘administrator’ role. That’s why it helps.
Can you show screenshots what settings you made to restrict content view and what visible/hidden. If information is not for the public, you can send links directly to support [at-sign] role-editor.com
Vladimir
Keymasterwp-admin menu item “Ninja Forms->Submissions” as all other “Ninja Forms” submenu items are protected by ‘manage_options’ user capability.
There is a custom filter ‘ninja_forms_admin_submissions_capabilities’ which allows to change default ‘manage_options’ capability to other one. But I did not test if it will be enough for access to full “Submissions” functionality of “Ninja Forms”.Vladimir
KeymasterHi,
Look at the “Admin menu access” add-on developed especially for this purpose. May be it will be suitable for you.
15/01/2019 at 05:19 in reply to: Best Approach to Creating Custom Roles on WordPress Multisite Installation #5400Vladimir
KeymasterI published version 4.49.3 to fix the reported issue with add-ons data network replication.
15/01/2019 at 03:43 in reply to: Best Approach to Creating Custom Roles on WordPress Multisite Installation #5398Vladimir
Keymaster@armel,
Thanks for this report. I confirm the bug introduced with version 4.49.2. It’s related to the core version 4.48:
Update: Multisite: Sites list is not requested from database on every page load in order to increase page load speed.
I will post here when the fix will be ready.
Vladimir
KeymasterJust input your license key at to URE settings at a site with new domain. Previous one will be excluded automatically.
If it’s the same installation there is not need to do something.Vladimir
KeymasterIf it’s possible to look on your site on-line, send login credentials to support [at-sign] role-editor.com
I will look what argument causes redirection.Vladimir
KeymasterIs role of such user restricted via “Admin menu access” add-on?
Vladimir
Keymasterauthor role includes these capabilities by default:
delete_posts
delete_published_posts
edit_posts
edit_published_posts
publish_posts
read
upload_files‘read’ capability (General group) allows to user access wp-admin by default. If you have active WooCommerce, it changes this WordPress default behavior. User should have one from these capabilities for access to wp-admin:
manage_woocommerce, edit_posts, view_admin_dashboard.This may explain why user can not access wp-admin, after you revoke ‘edit_posts’ from his role.
Vladimir
KeymasterAbout custom post type capabilities:
Custom post type is defined with special parameter ‘capability type’. If custom post type uses the same capability type as the WordPress built-in ‘post’ does, that is ‘post’, then this custom post type is protected by the same capabilities set: edit_posts, ‘delete_posts’, ‘publish_posts’, etc.
Any capability, like ‘edit_posts’ is granted to a role, not to a custom post type, or WordPress built-in type post. Capabilities groups to the left in a User Role Editor just shows a kind of permissions required for access to the functionality related to a group. Thus if few post types uses the same capability type you change access to all of them at once when: revoke ‘edit_post’ from a role. It does not matter which group you use to find ‘edit_posts’ and turn OFF its checkbox.If you need manage access to all custom post types separately there is a special option at “Settings->User Role Editor”: “force custom post types use their own capabilities”.
You have to aware that if you turn this option ON, you need to check roles if they have needed capabilities, e.g. ‘edit_attachments’, etc., as every post type will get its own capability type: post type ‘video’ – ‘edit_videos’, ‘project’: ‘edit_projects’, etc.Vladimir
KeymasterOK. I looked at the WordPress source code.
I don’t see any access conditions for this sections at nav-menu. They are the usual meta boxes registered for this page.
Look at the “Screen Options” at the top of the nav-menus.php page, just in case if a “Projects” checkbox is not turned ON for this user.Vladimir
KeymasterJust a guess, is there at least one project available for editing to this custom role at wp-admin?
Vladimir
KeymasterHi Jase,
Is this custom post type visible at admin menu (wp wp-admin)?
‘Pages’ is a WordPress built-in post type. Your custom post type should be visible at menu editor page as a separate widget, like ‘Projects’ at your screenshot.Vladimir
KeymasterHi,
Right, the latest version you can download from the download page after login to role-editor.com is 4.49.2. Click large read “Download” button to get it.
I re-tested minute ago with expected result.It’s correct and allowed to input your license key to one stage server and update URE Pro automatically.
Vladimir
KeymasterHi,
try this code:
add_filter('ure_post_edit_access_authors_list', 'ure_restrict_authors_list'); function ure_restrict_authors_list($authors) { $role = 'author'; $user = wp_get_current_user(); if (!in_array($role, $user->roles)) { return $authors; } $args = array( 'role' => $role ); $wp_user_search = new WP_User_Query( $args ); $users = $wp_user_search->get_results(); $ids = array(); foreach( $users as $user ) { $ids[] = $user->ID; } $ids_str = implode( ',', $ids ); $authors = URE_Utils::concat_with_comma( $authors, $ids_str ); return $authors; }
Replace ‘author’ role with your role id, like ‘role_b’. Do not forget to add ‘edit_others_posts’ capability to role_b role in order it can edit posts from other authors. Only posts from users with role_b role will be available for editing for any user with role_b role with this code applied.
-
AuthorPosts