Forum Replies Created

Viewing 15 posts - 1,336 through 1,350 (of 2,518 total)
  • Author
    Posts
  • in reply to: Slider Revolution Template Library Import Issue #4442
    Vladimir
    Keymaster

    Show me screenshots what is going wrong? Does user see needed button or he gets permissions error message when try to select a template?

    Vladimir
    Keymaster

    Thanks for the help with isolating this issue and testing a fix for it.

    Sami, default category is assigned to the post created by super-admin for the same reason. I removed the early current user permissions checking (which were made for any wp-admin page) in v. 4.38, but did not re-check that the same permissions check is done later for the all used hooks.

    If there will be a need to fix it before the next update become available, open the same v. 4.38 wp-content/plugins/user-role-editor-pro/pro/includes/classes/post-edit-access.php file, find auto_assign_term() function declaration and add current user permissions checking, like on the image below:

    fix bug with auto assign term for admin


    public function auto_assign_term($post_id, $post, $update) {
    if (empty($post_id)) {
    return;
    }
    if ($post->post_type=='revision') { // Do nothing with revisions
    return;
    }
    // do not limit user with Administrator role or the user for whome posts/pages edit restrictions were not set
    if (!$this->user->is_restriction_applicable()) {
    return;
    }
    $terms_list_str = $this->user->get_post_categories_list();

    Vladimir
    Keymaster

    Hi,

    Thanks for this information. It seems I could introduce a bug. Can you try a quick workaround?
    Open v. 4.38 wp-content/plugins/user-role-editor-pro/pro/includes/classes/post-edit-access.php, go to line #470, where function exclude_terms() is defined. Replace this part

    
            if (!in_array($pagenow, array('edit.php', 'post.php', 'post-new.php'))) {
                return $exclusions;
            }
            
            $terms_list_str = $this->user->get_post_categories_list();
    

    with this version:

    
            if (!in_array($pagenow, array('edit.php', 'post.php', 'post-new.php'))) {
                return $exclusions;
            }
            
            if (!$this->user->is_restriction_applicable()) {
                return;
            }
            
            $terms_list_str = $this->user->get_post_categories_list();
    

    Updated version will not apply this restriction to a user with superadmin privileges.
    I included this fix to the code and it will be available with the next update. Just wish to test it with your help to be sure, that I identified a problem correctly.

    Vladimir
    Keymaster

    Take into account this information about multiple roles assigned to a user. URE Pro looks for restriction model (Allow, Block) set for the primary role and if other value was selected for other roles, edit restrictions settings made for other role are ignored. Check if it’s your case. May be you need to grant to a user a role with edit restrictions as a primary one, or set the same restriction model for all roles granted to a user.

    Vladimir
    Keymaster

    Hi,

    Thanks for letting me know that you found a solution.
    Just in case it will be helpful, URE Pro offers a custom filter ure_edit_posts_access_id_list. You can get a list of posts ID (comma separated string) allowed/prohibited for editing to current user via this hook.

    Access restriction type (allow/block) is available via filter ure_edit_posts_access_restriction_type.

    in reply to: Conflict with Divi, can't edit pages #4422
    Vladimir
    Keymaster

    Hi,

    My test showed that Divi Role Editor shows only roles which has ‘edit_posts’ capability. Try to add it to your role and check if it will become visible at Divi Role Editor after that.

    in reply to: Prohibit hides all posts, disregards IDs #4420
    Vladimir
    Keymaster

    We need to take into account also that, when we prohibit some posts by terms ID, posts without term are still available.

    in reply to: Prohibit hides all posts, disregards IDs #4419
    Vladimir
    Keymaster

    Just some information about post number counting accuracy.
    “Division Access” taxonomy is used not by posts only. It is used by events also. So numbers ‘Posts->Division Access’ by categories do not show post number by this taxonomy terms, but some general number which includes events and posts together.

    Vladimir
    Keymaster

    Thanks for the additional details. I meet a such issue the 1st time.
    Is it possible to look at your site with ‘administrator’ privileges? If ‘Yes’, send login credentials to support [at-sign] role-editor.com

    in reply to: Prohibit hides all posts, disregards IDs #4416
    Vladimir
    Keymaster

    I meant under “All” one of the links to the posts list views: “All, Mine, Published, Drafts”.

    Unfortunately I can not repeat the main issue from your report – empty posts list.
    Can you check system logs at your stage copy for any PHP/MySQL errors which could be related to this issue?

    in reply to: Prohibit hides all posts, disregards IDs #4414
    Vladimir
    Keymaster

    Excuse me for such a delay with answer.

    My test shows that ‘All’ posts list is empty for user with ‘ECD Curator’ role just in one case when there special constant for WP Engine is not defined:
    define(‘WPE_GOVERNOR’, false);

    You have it in a provided files copy. I just suppose that you met a problem with another (possibly stage) copy, do you?

    I will continue with numbers count tests.

    Vladimir
    Keymaster

    User Role Editor (URE) does not set any restrictions for administrator role.
    Check if URE deactivation will help to understand that problem is related exactly to URE.

    Vladimir
    Keymaster

    Hi,

    Do those users has a custom role with administrator privileges or do you write about about users with ‘administrator’ role?

    Do you use Edit restrictions add-on? If ‘Yes’, try to deactivate it. Will it help? If Yes, activate this add-on back and re-check if role(s) granted to user is restricted by add-on or user itself has restricted access to posts editing.

    in reply to: Update Pages by Review #4408
    Vladimir
    Keymaster

    Hi,

    This more sophisticated way requires more coding. May be I will write such add-on with time.

    There is a plugin Revisionize which makes this. I did not tested it though.

    in reply to: Screen Options #4401
    Vladimir
    Keymaster

    Hi James,

    “Hide Screen Options by user roles” feature is still in plans.
    Thanks for the good feedback.

Viewing 15 posts - 1,336 through 1,350 (of 2,518 total)