Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
I hope you turned ON the ‘Admin menu access restrictions’ at popup opened after you click the ‘Update Network’ button under ‘Network admin->Users-User Role Editor’.
What is not synchronized?
You have to have the same admin menu at all subsites, that is the same list of active plugins, the same active theme. If admin menu differs from subsite to subsite, it will differs under the URE->Admin menu too.Give me more details on a problem with hiding menu item. What plugin created it? Show a screenshot of ‘Admin menu’ window.
Vladimir
KeymasterHi,
Try this workaround:
<?php add_action('map_meta_cap', 'ure_exclude_delete_site_cap', 10, 4); function ure_exclude_delete_site_cap($caps, $cap, $user_id, $args) { if (!is_admin()) { return $caps; } if (is_super_admin()) { return $caps; } if ($cap==='delete_site') { $caps = array('do_not_allow'); } return $caps; }Setup this code as a Must Use plugin. In short, place it into .php file at wp-content/mu-plugins/ folder.
Vladimir
KeymasterHi Giacomo,
Thanks for the feedback.
Yes, I included this fix to the code. I will publish it with the next update.13/04/2017 at 03:28 in reply to: Issue with "Activate per form user access management for Gravity Forms" #3570Vladimir
KeymasterHi Clair,
Login under that user. Can he really edit Gravity forms? I mean you have to grant him enough permissions to edit Gravity Forms.
Then you can a restrictions at that user profile, what forms from the available list he allowed to edit.
Vladimir
KeymasterLook at the ‘Settings->User Role Editor->General’ tab and check if option ‘Show Administrator role at User Role Editor’ is turned ON. It should be turned ON in order URE shows ‘Administrator’ role at the list of roles available for editing.
Vladimir
KeymasterHi Giacomo,
A quick fix for the empty 404 page problem is to add lower priority to the URE Pro’s post filter. You can open user-role-editor-pro/pro/includes/classes/content-view-restrictions-posts-list.php and replace line #17
add_action('pre_get_posts', array($this, 'hide_prohibited_posts'));with this version
add_action('pre_get_posts', array($this, 'hide_prohibited_posts'), 100);A reason of this conflict the woffice theme applies its posts restrictions filter even if restricted posts list is empty. Applying this filter theme overwrites the same filter set by URE Pro little earlier. So a restricted page exists for WordPress and WP tries to show it, but with empty content as URE does not allow to view content of restricted post here too.
Vladimir
KeymasterCheck if ‘create_act_templates’ was granted to the ‘administrator’ role also. It can take place from time to time that admin does not have all existing privileges.
Vladimir
KeymasterHi Giacomo,
I suppose that it’s not a bug, but a feature.
Look at ‘Settings->User Role Editor->Additional Modules’ tab, ‘Content Edit Restrictgions’ section. Do you have ‘Activate “Create” capability for posts/pages/custom post types’ option turned ON there?
Did you test with ‘administrator’ role of with any other one?
If ‘Yes’ on both questions, then check that ‘create_act_templates’ capability was granted to that role too.
Vladimir
KeymasterHi Giacomo,
Good news – I repeated a described issue. Trying to open prohibited by URE (action HTTP 404) page with active wOffice 2.4 does not show theme’s 404 page. Trying to open really unexisted page shows theme’s 404 as expected.
So I will investigate a reason of this conflict and contact your then, may be tomorrow.
Vladimir
KeymasterHi Richard,
Your question came in time. I discovered that I need something similar myself to get a data about restricted posts from other add-on: I plan to hide front-end menu items linked to the prohibited pages. So I may find something suitable in an existing code or write publicly available function especially for this purpose. I will contact you in 2-3 days.
Vladimir
KeymasterDone. It will be available with the next update. Thanks again.
Vladimir
KeymasterHi Giacomo,
I will add sorting by alphabet. Thank you.
Vladimir
KeymasterCoding you made is related to the default value for a new added post bug you discovered recently.
I will try to repeat the 404 issue with your theme tomorrow and search a solution in case of success.
Vladimir
KeymasterI got a theme copy. Thanks. I will test it tomorrow.
Vladimir
KeymasterHi Giacomo,
That was a relative path inside URE Pro’s folder.
Full path: wp-content/plugins/user-role-editor-pro/pro/includes/classes/content-view-restrictions.phpTo send a theme copy upload it to Google Doc or DropBox service and send me (support [at-sign] role-editor.com) the invite for that .zip file.
-
AuthorPosts