Forum Replies Created
-
AuthorPosts
-
26/01/2017 at 06:13 in reply to: enclosing another shortcode within role restriction shortcodes #3287VladimirKeymaster
Hi,
It’s correct to enclose other shortcode inside of URE’s shortcode. It works.
Check if ‘gravityview_view_entries’, ‘gravityview_view_others_entries’ capabilities are granted to ‘comm_member_research’ role.VladimirKeymasterIf all 3 users added to this subsite have an ‘administrator’ role, then any current user (except superadmin) with ‘administrator’ role will not see other users with the same role and see the empty users list. URE adds this protection to exclude a case when one single site administrator changes permissions for another.
If you trust to all single site administrators it’s possible to switch off this protection using ‘ure_supress_administrators_protection’ filter. It returns ‘FALSE’ by default. If you will return ‘TRUE’ from this filter then protection will be switched off.
add_filter('ure_supress_administrators_protection', 'ure_supress_administrators_protection', 10, 1); function ure_supress_administrators_protection ($supress) { return true; }
Just insert code above to your active theme functions.php file.
WordPress assigns roles to users on a per site basis. So if user has an ‘administrator’ role at one site it does not mean that he has the same role at all subsites automatically.
When you open user’s capabilities at the “Network Admin Center->Users” you see role assigned to a user for the main site only (usually ID=1).
If you wish that user has the same role for all network you can click “Update Network” button. The important condition – this role should exist for all subsites.
In order to replicate all roles from the main site to all subsites you can click “Update Network” from “Network Admin->Users->User Role Editor”. Then all subsites will have the same roles and capabilities as the main site has.VladimirKeymasterHi David,
What plugin do you use to confirm email-addresses? Send a download link.
If it’s a paid product send its copy to support [at-sign] role-editor.com for the investigation.VladimirKeymasterYes, send me a link to your video. You can send it directly to support email.
I do not resolve support questions via online sessions. If that’s possible I may look at your site directly with superadmin permissions.
From what date (month, year) older version may help?
VladimirKeymasterHi,
Do you restrict some admin menu items for this role with “admin menu access” add-on?
VladimirKeymasterHi,
Job Manager uses WordPress built-in capabilities for its menu protection:
Job Manager publish_posts
Settings manage_options
Add Job publish_posts
Jobs publish_posts
Applications read_private_pages
Emails read_private_pages
Interviews read_private_pagesYou can use “Admin menu access” add-on to block for the role of this user the access to the unneeded menu items, which will become available for it with capabilities above together, like “Settings”.
VladimirKeymasterWill something change if you deactivate URE temporally? If not, try to deactivate all plugins and then activate them back one by one to isolate a problem.
Do you have “Other role access” add-on active? Did you set any restrictions for administrators with this add-on?
VladimirKeymasterHi Urs,
Thanks for suggestion.
Options description is there already. Click ‘Help’ link at the top right corner to URE’s Options page to see it.VladimirKeymasterUse this workaround:
add_filter('ure_restrict_edit_post_type', 'exclude_posts_from_edit_restrictions'); function exclude_posts_from_edit_restrictions($post_type) { global $current_user; $restrict_it = true; if ($current_user->user_login=='your_user_login_here') { if ($post_type!=='attachment') { $restrict_it = false; } } return $restrict_it; }
It applies ‘edit restrictions’ set for the user to the ‘attachment’ post type only.
VladimirKeymasterYes. You can set the same restriction for a user at user profile too.
VladimirKeymasterThere is no “except items own by some user” feature.
If you turn ON “Own data only” checkbox for role at “Edit Posts” then user with such role will see just his own media library items only at Media Library and his own posts/pages only at Posts/Pages list too.
VladimirKeymasterYou are right,
the best available solution to this is simply create some empty ‘no-role’ role (without capabilities) and then use bulk action to change a role for selected user to ‘no-role’.VladimirKeymasterI can not reproduce this difference between list and thumbnail views.
I see a mistake in logic. This filter will never return true for user with single ‘editor’ role or user with single ‘author’ role, as 1st definitely can not ‘author’, but 2nd can not ‘editor’.
Try to replace permissions check part with this one:
if (!current_user_can('editor') && !current_user_can('author')) { return $show_all; }
VladimirKeymasterI suppose that “Hide admin bar” checkbox is not a reason of this problem.
Do you use WooCommerce? If yes, read this post.VladimirKeymasterI sent a version 4.32 directly to your email. If a problem with non-admin users login is really related to the URE Pro version 4.32.1 (that is downgrade to 4.32 will fix a problem) let me know.
-
AuthorPosts