Forum Replies Created

Viewing 15 posts - 121 through 135 (of 2,514 total)
  • Author
    Posts
  • in reply to: Role capabilities won’t save #8190
    Vladimir
    Keymaster

    @franchiserocket:
    I may look if it’s possible to make something, if you share plugin copy with support [at] role-editor.com via Google Drive or Dropbox.

    Vladimir
    Keymaster

    Thanks a lot for the good feedback and sharing your thoughts how to enhance the editing restrictions functionality. I agree with your suggestions and I will try to realize them in a month or two.

    in reply to: Settings options and permissions through CLI #8185
    Vladimir
    Keymaster

    Hi,

    URE Pro does not support wp-cli and any other CLI commands. If URE Pro is involved, You may temporally deactivate it – just rename it’s folder /wp-content/plugins/user-role-editor-pro to something other. It will be executed and will be automatically deactivated on ‘Plugins’ page opening.

    URE Pro stores it’s settings in the database:

    
    SELECT * FROM wp_options WHERE option_name='user_role_editor';
    

    So you may change URE Pro settings replacing option_value field value.
    For example, find
    s:36:”force_custom_post_types_capabilities”;s:1:”1″;
    and replace the final 1 with 0 in order to switch OFF the option “that CPT use their own permissions”.

    Vladimir
    Keymaster

    Top admin menu bar items are the duplicates of the similar items from the main left side admin menu. So if use has access to the admin menu item, then he should have access to the similar item at the top admin menu bar.
    If user does not have access to the main admin menu item, then you need to grant him such access, adding to a role a capability, which has administrator, but does not have this role.

    Vladimir
    Keymaster

    You may use the ‘Prohibit’ value for ‘What to do’ option at the profile page of the selected user. Specify, what pages he can not edit. So such user will can edit all other pages, which are beyond of the specified criteria.

    Vladimir
    Keymaster

    You are right. I will re-check the 1st available category pre-selection, as it worked earlier.

    Vladimir
    Keymaster

    At my test I added new post without problem, but can not assign category for translation until extended list of allowed categories by the translation categories ID.

    I suppose that your allowed to edit only main language category. Translation for category has own ID. Add needed ID to the list of allowed categories ID.

    in reply to: Shop Manager User Data Navigation Disabled? #8166
    Vladimir
    Keymaster

    Hi,

    If you revoked from shop_manage role some capability, this change is permanent. It does not depend from the presence of User Role Editor Pro at your site. You may grant it back manually to solve this.
    WooCommerce->Reports menu is protected by ‘view_woocommerce_reports’ capability.
    WooCommerce->Orders menu is protected by ‘edit_shop_orders’ capability.
    If role can these capabilities but still can not access these menu items, and URE deactivation does not help, that is you don’t apply some restriction via URE’s additional modules, then some another plugin may be involved. Try to deactivate all plugins except WooCommerce and test. If that helps, activate plugins back one by one to isolate a reason.

    in reply to: Ability to edit permissions per CPT #8162
    Vladimir
    Keymaster
    in reply to: User Profile Fields #8158
    Vladimir
    Keymaster

    In the provided piece of code the key line is missed:

    
    add_action('admin_init', 'user_profile_fields_disable');
    

    It links your function to the hook which executes it.

    Also pay attention that JavaScript code disables only input fields. It can not disable any other visible element. If you wish to hide some element on a page you should use another jQuery code, like

    
    jQuery('#div_id').hide();
    
    Vladimir
    Keymaster

    OK.

    Vladimir
    Keymaster

    Is it possible to look on your site (development/stage copy preferred) with admin privileges? If Yes, send credentials to support [at-sign] role-editor.com

    Vladimir
    Keymaster

    Does your user have WordPress built-in ‘administrator’ role?

    URE automatically grants full access to itself to the ‘administrator’ role and hides itself from other users with access to the plugins list, who don’t have ‘ure_manage_options’ capability.

    in reply to: User Profile Fields #8149
    Vladimir
    Keymaster

    Send the link to a new code version to support [at-sign] role-editor.com

    in reply to: User Profile Fields #8147
    Vladimir
    Keymaster

    Hi,

    Syntax error is at the prev line – missed closing bracket ‘)’ after (‘custom_role’). It should be:

    
        if (current_user_can('custom_role')) {
          add_action( 'admin_footer', 'user_profile_fields_disable_js' );
        }      
    
    
Viewing 15 posts - 121 through 135 (of 2,514 total)