Forum Replies Created

Viewing 15 posts - 1,621 through 1,635 (of 2,529 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    Hi,

    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
    Keymaster

    Hi,

    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.

    in reply to: User Access restrict to return 404 error #3572
    Vladimir
    Keymaster

    Hi Giacomo,

    Thanks for the feedback.
    Yes, I included this fix to the code. I will publish it with the next update.

    Vladimir
    Keymaster

    Hi 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
    Keymaster

    Look 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.

    in reply to: User Access restrict to return 404 error #3565
    Vladimir
    Keymaster

    Hi 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
    Keymaster

    Check 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
    Keymaster

    Hi 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.

    in reply to: User Access restrict to return 404 error #3558
    Vladimir
    Keymaster

    Hi 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
    Keymaster

    Hi 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.

    in reply to: List Roles always alphabetically #3556
    Vladimir
    Keymaster

    Done. It will be available with the next update. Thanks again.

    in reply to: List Roles always alphabetically #3555
    Vladimir
    Keymaster

    Hi Giacomo,

    I will add sorting by alphabet. Thank you.

    in reply to: User Access restrict to return 404 error #3551
    Vladimir
    Keymaster

    Coding 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.

    in reply to: User Access restrict to return 404 error #3549
    Vladimir
    Keymaster

    I got a theme copy. Thanks. I will test it tomorrow.

    in reply to: User Access restrict to return 404 error #3548
    Vladimir
    Keymaster

    Hi 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.php

    To 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.

Viewing 15 posts - 1,621 through 1,635 (of 2,529 total)