Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterYou granted access to ‘redirect’ custom post type but not to ‘Tools->Redirection’ menu.
Bad news: Redirection plugin protect this menu item with ‘administrator’ role by default.
Good news: It allows to developer to change this default value to your own using custom filter, like this:add_filter('redirection_role', 'change_redirection_permissions', 10, 1 ); function change_redirection_permissions($cap) { $cap = 'manage_options'; return $cap; }Then any role with ‘manage_options’ capability will can access ‘Tools->Redirection’ menu item. You can install this code as a part of your active theme functions.php file or as a separate .php file in a wp-content/mu-plugins folder – read more about Must Use plugins.
Vladimir
KeymasterHi,
This custom filter ure_restrict_edit_post_type may help. Return FALSE from it for the ‘event’ CPT to not restrict events editing.
05/12/2017 at 16:30 in reply to: Role with access to edit Set Post ID's can edit child posts too #4482Vladimir
KeymasterHi,
You can change this default behavior via custom filter: ure_auto_access_child_pages.
Vladimir
KeymasterTemporally switch off “Activate wp-admin pages pemissions viewer” checkbox at “Settings->User Role Editor->Additional Modules” tab.
It seems that this add-on works not for all sites setup. I need to make this code more universal.
Vladimir
KeymasterThanks for letting me know. I will include this to my development plans.
Vladimir
KeymasterDo you use any caching plugin? Try to clear its and browser cache – just in case in would help.
Did you try to deactivate temporary all plugins except URE?Vladimir
KeymasterGood! Thanks for letting me know.
One recommendation – It’s the best solution to restrict a role via user capabilities 1st. So in order to not block menu items protected by ‘edit_pages’, ‘manage_categories’, ‘edit_staff_members’, etc. revoke those unneeded user capabilities from your custom role. And then block what you don’t need with “Admin menu”.
Vladimir
KeymasterEditor role WordPress default state:
https://codex.wordpress.org/Roles_and_Capabilities#EditorDoes this link work for user if you deactivate “Admin menu access” add-on in URE settings?
If ‘Yes’ then problem is not related to the user capabilities included into a role. It’s related to “Admin menu access” add-on settings for this role. So give me more details then in order I can proceed.Vladimir
KeymasterShow me the screenshots of admin menu for the “Block Selected” variant and what link does not work.
Vladimir
KeymasterThanks for the feedback.
Yes, “Admin menu access” add-on would be a reason of a problem. It blocks access to all URL with main part from admin menu if they differ by arguments list. If URE sees blocked URL it redirects user to the 1st available URL.
If you use “block not selected” model in “Admin menu” you can invert your selection for menu items and use “Block Selected” model as a workaround.Vladimir
KeymasterI see another picture when switch site language to Russian. So I suppose you have a corrupted translation file. Try to replace .po, .mo files with original copies from URE Pro .zip installation package.



Vladimir
KeymasterHi,
There are a lot of WordPress plugins which resolve this task – click here to look at the list.
Vladimir
KeymasterHi,
You have to grant to a user or role these capabilities in addition to capabilities from the “Map Locations” and “Maps” you granted already as I suppose:
MapifyPro – manage_options
Maps – edit_posts
Map Locations – edit_posts
Location Tags – manage_options
Batch Upload – manage_options
MapifyPro Settings – manage_optionsVladimir
KeymasterYes, there are some missing translations, thanks. I will fix this with the next update. Can you send a link to screenshot with a untranslated labels? I can not say that I see too much untranslated strings at User Role Editor pages.
If you write about custom post type labels and user capabilities added by plugins, that they are not translated by User Role Editor.
Vladimir
KeymasterHi,
You can define PHP constant to provide a license key for User Role Editor automatically, like this:
// User Role Editor Pro License Key define('URE_LICENSE_KEY', 'your-license-key-here'); -
AuthorPosts