Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterInformation is available at ‘Content edit restrictions features’ section at home and documentation pages. Read this page.
Ask if something will be not clear after reading.Vladimir
KeymasterHi,
Give me more details, what is wrong with admin menu? Screenshots are very appreciated. I may look on your settings on-line if you send admin credentials to support [at-sign] role-editor.com
‘Allow’ is a default action at the user level. It works together with restriction set for this user at the role level, but if you selected the same action ‘Allow’ for role. Plugin should use both restrictions data (from the user level and the role level) simultaneously. When you select ‘look at roles’, plugin ignores restrictions selected at a user level.
When you select different actions at user and role levels, user level has a priority.Vladimir
KeymasterHi Lori,
Does user with this role see a full “Appearance” menu if you deactivate “Admin menu access” add-on?
Show the screenshot of restrictions you made for this role with “Admin menu”.Vladimir
KeymasterHi,
[user_role_editor] shortcode do not work for ‘administrator’ role by design. The are no any restrictions for administrator.
Vladimir
KeymasterHi,
Thanks for this notification. I wrote at the end of the documentation page:
This add-on could be not fully compatible with some other plugins or themes which also replace WordPress core Walker_Nav_Menu_Edit class from wp-admin/includes/class-walker-nav-menu-edit.php file. Read this discussion for more details.
I see that it’s your case. Devis theme uses its own menu walker which replaces as WordPress’s as URE’s one.
Vladimir
KeymasterI like the idea with page template as the access criteria. Thanks.
I will realize it.Vladimir
KeymasterThanks for staying with User Role Editor Pro. Your license key is still the same.
URE Pro update server caches responses for the clients requests for 12 hours. It’s a reason why you still saw “Expired” after upgrading your account to Pro Personal Lifetime.
Take the license key from your account page and try again today. My test showed that your license is active.
“License key” field does not take empty values. You may input any not empty value (like 111) to stop use a valid license key on the site.
Vladimir
KeymasterHi Brian,
I made an assumption that user select a secondary role from the business type radio list. So I added role IDs as the option values for its options: hospice, hospital, surgury_center.
You have to create roles with the same IDs. This interface element is available as the $entry[11] at the GF ‘gform_user_registered’ filter. So PHP code will be:add_action( 'gform_user_registered', 'frontend_register_add_2nd_user_role', 10, 4); function frontend_register_add_2nd_user_role($user_id, $user_config, $entry, $user_pass) { global $wp_roles; $user = new WP_User($user_id); $role = $entry[11]; // secondary role if (empty($role)) { return; } if (!isset($wp_roles->roles[$role])) { return; } $user->add_role($role); }Vladimir
KeymasterHi Brian,
Thanks for this checking. I just found your message at the Gmail SPAM box. I will work on the subject. Excuse me for this delay with response.
Vladimir
KeymasterWhat version of User Role Editor Pro do you use?
Show screenshots with settings you made at “Admin menu” or let me check on-line. Send admin login credentials to support [at-sign] role-editor.com in the 2nd case.Vladimir
KeymasterDo you use the latest version of URE Pro 4.29.1? Version 4.29 did not apply admin menu access restrictions to a user with ‘delete_users’ capability, as WordPress core is_super_admin() function returns TRUE for such user.
I use ‘administrator’ role to look what capability protects a needed menu item, as ‘administrator’ has a full access to the menu.
In order to see ‘Administrator’ role at the list of roles at ‘User Role Editor’ you need to turn ON the ‘Show Administrator role at User Role Editor’ option at “Settings->User Role Editor->General” tab.
Vladimir
KeymasterHi Brian,
Show a screenshot of your GF user registration add-on form.
I have Gravity Forms User Registration Add-On copy version 1.6 for testing. If you use another version send its copy to support [at-sign] role-editor.com
I will try to reproduce your form and write a script for it.I use a copy of commercial products provided by clients at the local development environment and for testing purpose only.
Vladimir
KeymasterVladimir
KeymasterJust assumption. But it could be a quick workaround. If b2b role has ‘edit_others_posts’ (or quotations) capability, try to revoke it. It may help.
Vladimir
KeymasterHi,
I see the problem.
If you try to open other author post (like 103) at the back-end post editor via direct link:
wp-admin/post.php?post=103&action=edit
you will get permissions error message:
Désolé, vous n’avez pas l’autorisation de modifier les entrées dans ce type de contenu.It’s possible if front-end editor code does not respect permissions set by WordPress. For example it may check if current user can edit_posts, but it may does not check if current user can edit this post ID=103 and send update directly to the database.
Could you send me (support [at-sign] role-editor.com) this front-end editor code (plugin or theme) copy for the investigation?
-
AuthorPosts