Forum Replies Created
-
AuthorPosts
-
07/06/2018 at 10:55 in reply to: Roles that share pages with another role results in edit access to all pages #4929
Vladimir
KeymasterWhen I will return to my computer after 2 days trip, I will make more tests on the subject and inform you about the results.
Vladimir
KeymasterRepeat the action which leat to request timeout and look for the latest records at:
/var/log/apache2/error.log
/var/log/syslogIs it suitable for this case to export database, plugins and theme files using “UpdraftPlus” plugin and share with me (support [at-sign] role-editor.com) via DropBox or Google Drive?
I would setup your site copy at my local dev. environment and test the issue with debugger then.Vladimir
KeymasterHi,
Generally, URE’s Gravity Forms access add-on modifies WP_Query SQL expression for the queries related to the GF database tables and should not influence on a WP queries related to the posts or pages.
Can you look at the server logs if they contain any related information from PHP or/and MySQL about endless recursion, timeout, etc. and share it with me?
Vladimir
KeymasterYou need to change the template which outputs user’s name, add user’s roles there using a function like below. It returns the string of comma separated user roles by user ID:
function get_user_roles($user_id) { $wp_roles = wp_roles(); $user = get_user_by('id', $user_id); $roles = array(); foreach ($user->roles as $role_id) { $roles[] = $wp_roles->role_names[$role_id]; } $roles_str = implode(', ', $roles); return $roles_str; }
Vladimir
KeymasterHome page was hidden from all users except the selected group by custom code included into the active theme functions.php file.
Vladimir
KeymasterHi Levent,
It’s clear now. You tried ‘Block not selected’ model at ‘Admin menu’ settings for the ‘klienttest’ role. This model is too restrictive. It blocks all URL and removes from the left side menu and from the top admin menu bar all menu items, which are not apparently allowed. It has some other side effects also.
I switched ‘Admin menu’ selection for this role to “Block selected” and reverted menu items selection. “Enable Visual Builder” button at admin menu bar is visible for this role now.You should always minimize role access via user capabilities 1st and block menu items via ‘Admin menu’ when you can not revoke user capability, as it is required for some other purpose (used by other menu item too, for example).
So I revoked from the ‘klienttest’ role these capabilities:
edit_themes,
delete_themes,
activate_plugins,
delete_plugins,
create_users,
delete_users,
promote_users.With ‘Block selected’ model you have to re-visit ‘Admin menu’ for the restricted roles after you activate new plugin, as some new menu items may become available for the roles, while they should be blocked.
Vladimir
KeymasterAbout extending of access for a user with ‘wdm_instructor’ role:
It seems that ‘Instructor Role’ plugin re-creates ‘wdm_instructor’ role dynamically, not once on plugin activation like others do. Additionally it applies own restrictions for such user, modifies the list admin menu itesm available for this user.
You can try to deactivate ‘Instructor Role’ plugin temporally and you will see some new items at the left side admin menu, which it hides.
So ‘Instructor Role’ set own hard limits for user permissions with ‘wdm_instructor’ role, which is not editable via usual WordPress roles.URE “admin menu access” add-on is needed to block/hide menu items, which available for this role already. It does not provides access to the menu which is not available for a role. So use it with care.
Vladimir
KeymasterHi,
‘Hide admin bar’ option for ‘subscriber role:
1) I confirm the bug introduced to User Role Editor with one of the recent updates. When you select other role page view is refreshed via AJAX, but ‘Additional options’ section is not refreshed properly. I will fix this issue with the next update. Thanks for your help with isolating this.
2) There is a conflict with other related plugin: Uncanny Learndash Toolkit (ULT). You activate similar module there “Ocultar barra de administrador”
It overwrites action made by User Role Editor, that is 1st, URE hides top admin bar for the user with subscriber role, but by the 2nd step, ULT shows it again.
Just decide from what plugin you will use this feature and use only one.Let me make the same recommendation about showing front-end menu items for roles: do not use “Nav menu roles” plugin and URE “Front-end menu access” add-on simultaneously. You will meet with a conflict in other case.
Vladimir
KeymasterI got it. Thanks. I will look, if it’s possible to offer something suitable for this plugin via URE Pro add-on taking into account WPMF user permissions update.
Vladimir
KeymasterHi,
Yes, provide me access to the latest version. I will look if that’s possible to work from URE with this user settings.
Vladimir
KeymasterHi,
Ignore previous reply you got via email – it was send by mistake.
Send the admin login credentials to support [at-sign] role-editor.com
I will look at your site settings.Vladimir
KeymasterI logged-in at your site, ‘Admin menu access’ add-on is active (checkbox is turned ON at Settings->User Role Editor). I switched to user levent and see “Visuellen Builder aktivieren” menu item at the top.
Please clarify, how to repeat the issue.
Vladimir
KeymasterDiscard previous message. I found yours at a SPAM box.
Vladimir
KeymasterI did not receive the email from you.
Vladimir
KeymasterIs it possible to look on your site with admin privileges? If ‘Yes’ send login credentials to support [at-sign] role-editor.com
-
AuthorPosts