Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi Matt,
Can you provide me access to the “Car dealer press” copy for checking its user permissions? I Yes, use (DropBox or similar service) and send a link to support [at-sign] role-editor.com
I install commercial products from clients at my local development environment and use for the investigation purpose only.
26/08/2017 at 12:37 in reply to: Restrict access to Gravity forms by Role and not just by user #4103Vladimir
KeymasterHi Jan,
Thank you for a remind.
It’s still possible only per user.
In spite of more than a year from the 1st post, this feature is still in the ‘ToDo’ list. I can not tell about an exact date. I just confirm, that this feature will be realized, may be this autumn.Vladimir
Keymasterand things worked fine.
OK.Thanks for the information.
i should either use allow or block, not both, right?
For the roles granted to the same user – Yes, quite right.
Primary role is always the 1st. It’s a way how WordPress defines a primary role – role with index 0 in a roles array.Yes, user access model has a priority over a primary role access model.
Vladimir
KeymasterI even couldn’t get the custom taxonomies to show/edit on dashboard until i gave edit_posts and manage_categories rights to the user.
It’s a bug from “Admin menu access” add-on. Thanks. I will develop a fix.
About different list of posts available to a user after you restricted him to edit a subset of posts by some criteria. Can you describe a step by step scenario in order I can repeat this?
Vladimir
KeymasterIt could be a caching issue. WordPress may show older data 1-2 times after you add edit restrictions to a user or role, especially when you test it (before and after changing available posts list) at the same browser. Can you repeat this in a different browsers: login at one browser as admin, and as a test user at another browser.
Edit access restrictions works for multiple roles assigned to the same user this way:
URE takes an access model (Allow or Block) from the 1st role and add to it access conditions from other roles with the same access model only. For example: User has 3 roles. 1st role: Allow, 2nd role: Block, 3rd role: Allow. Access conditions will be applied from the 1st and 3rd roles only.Vladimir
KeymasterHi,
Send exact download link for the Redirection plugin.
Vladimir
KeymasterHi Frederico,
Flamingo requires ‘edit_users’ capability for all its features by default.
It’ possible to change this through replacing current flamingo custom user capabilities mapping via filter ‘flamingo_map_meta_cap’. Look at flamingo/includes/capabilities.php for more details.
21/08/2017 at 06:06 in reply to: Grant restricted users access to update other restricted users media uploads #4089Vladimir
KeymasterHi,
Thank you for the additional details provided by email. It helped to found a reason.
URE restricts editing of all post types, by default, including ‘attachment’ type. So if you allowed to user to edit pages with ID 2, 3, only this ID will be available for editing. But media library items attached to these pages are not edit to the list of allowed for editing IDs automatically. I will add this feature with the next update – in September, 2017.Currently you can exclude ‘attachment’ post type from ‘editing restrictions’ as a workaround: https://www.role-editor.com/documentation/hooks/ure_restrict_edit_post_type/
Vladimir
KeymasterThanks for sharing your opinion. You are not alone. I will add a custom filter to the next version in order it will be possible to change this default logic and process the shortcode for administrator the same way as for any other user.
Vladimir
KeymasterHi Brad,
Did you test shortcode under regular users or as admin?
Take into account that shortcode does not work for user with ‘administrator’ role. There is no restrictions for administrator. I do not process [user_role_editor] shortcode for administrator for this reason.Vladimir
KeymasterI already tried adding the tax. term only, which hid all the categories and tags in WP post edit screen.
It seems I need to enhance URE’s logic at this point. I will research what it’s possible to do. Thank you.
Vladimir
KeymasterExcellent, that you can resolve the issue.
Child pages are included/excluded by default. You can change this using this filter:
Vladimir
KeymasterI found a reason. Your assumption about string length limit was near to true. But this limit was set by your hosting WP Engine (WPE). It has an automatically executed code at ‘mu-plugins’ folder which restricts SQL query text length to 16384 characters.
wp-content/mu-plugins/wp-engine-common/plugin.php, line #2518:if ( $query_length > self::QUERY_LENGTH_MAX ) { return ''; }
SQL query you get for full list of categories grows up to 16543 characters long. WPE just prevents its execution writing to the system log:
“KILLED QUERY (16543 characters long generated: SELECT …”
It’s a pity, that they do this silently, without raising exception. So you and me should waste a time searching what’s going wrong.What workaround is possible:
1) define WPE_GOVERNOR PHP constant with FALSE value, add this line to wp-config.php file:define('WPE_GOVERNOR', false);
It should force WPE to ignore SQL query length.
Be aware, that it could not work if this PHP constant is defined already by WPE themselves. So just try it.2) You have 3027 posts, plus some pages and events. When you restrict role by defining categories in which you prohibit to edit posts, there are 3228 post ID in the list, which are prohibited. If define categories in which you allow to edit posts, then this list will be much shorter: 68 items only.
I include comma separated list of post ID into the SELECT SQL query. That’s why this command could become longer then a limit set by WPE.Vladimir
KeymasterStrange. There is no a limit on the number of characters in ID lists.
I will make another test with your data copy. Just in case I deactivated some conflicting plugin.
Vladimir
KeymasterHi,
It’s the 1st request about “Content Aware Sidebars” (CAS) plugin. Give me more details (screenshots are appreciated) about what URE Pro settings are not worked with CAS plugin together. How do you use CAS? Did you using CAS place some widget inside a post with content view restriction and that widget was shown for all in spite of that restriction?. Show screenshots of post content from editor page and front-end and view restriction set for it.
How it’s related to menu?
-
AuthorPosts