Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 2,513 total)
  • Author
    Posts
  • in reply to: Cannot update #2633
    Vladimir
    Keymaster

    Open “Users->User Role Editor” and check the browser JavaScript console for the error messages. If there are any send here a copy.

    in reply to: Cannot update #2631
    Vladimir
    Keymaster

    Hi,

    Try again, just in case it was a temporary network problem. If error will be repeated send a domain name of your site. I will check my update server logs.

    in reply to: Access to all plugins except WooCommerce? #2627
    Vladimir
    Keymaster

    Yes, ‘Admin menu’ works in read-only mode for the ‘Administrator’ role, as we should not restrict site administrator.

    Create for a new role as a copy of administrator role. Revoke from it unneeded capabilities, like manage_options. We should minimize access using capabilities 1st, whenever it’s possible.

    Open “admin menu” window for ‘administrator’ or ‘shop_manager’ role, look what capabilities protect WooCommerce related menus. Revoke from a new role unneeded capabilities.
    After then open admin menu window for this new role and block the rest of menu items which you can not remove using capabilities.

    Vladimir
    Keymaster

    Hi Kevin,

    I make my own test with active W3TC and can not repeat the issue. If you use CDN, cached version of the page may be provided from there and it could be built for other user.
    May be it has sense to use one of these W3TC options:
    – Don’t cache pages for logged in users;
    – Don’t cache pages for following user roles;
    available at the “Page Cache -> General” section?

    Vladimir
    Keymaster

    Thanks for sharing your experience.

    In general if plugins use the same capabilities you may block unneeded plugin menus via “Admin menu access” add-on you referenced at your post.
    Some plugins changes capabilities, which they use for menu protection, dynamically:
    use one for ‘administrator’ role and another one for other roles. Such cases require investigation as the admin menu access module shows menu items list using capabilities it got from menu for the ‘administrator’ role.

    Vladimir
    Keymaster

    A workaround which will allow to not define ‘dummy’ ‘Add New’ submenu items is to add to the user role ‘create_posts’, ‘edit_posts’ capability. It’s possible to block that menu with URE Pro “Admin menu access” add-on.

    In other cases WordPress requires that there was a correspondent menu item available for current user if he tries to access ‘post-new.php’ page.

    You can find logic at user_can_access_admin_page() function.
    It’s located at wp-admin/includes/plugin.php file, line # 1697.
    It’s called from wp-admin/includes/menu.php file, line # 333.

    in reply to: Can I restrict posts to their author? #2617
    Vladimir
    Keymaster

    Hello. It’s there already:
    Edit own data only
    It’s not a capability. But the checkbox at the “Edit post restrictions” dialog window for the role.

    Vladimir
    Keymaster

    Hi Kevin,

    There was one message from a client about conflict with W3 Total Cache some time ago. He planned to switch to another caching plugin.

    I do not have a quick decision on hands. This issue requires the special investigation.
    Did you tried to clear the cache at W3TC after updating admin menu settings in User Role Editor?

    in reply to: memory size fatal error #2611
    Vladimir
    Keymaster

    It seems I should optimize some SQL queries. How much pages (approximately) do you have at this site?
    Edit restrictions are not applied to the users with ‘administrator’ role. So that query was not executed.

    Vladimir
    Keymaster

    Thanks. I got it.

    in reply to: Job Postings Not Seen by Non-Users #2607
    Vladimir
    Keymaster

    Deactivate “User Role Editor Pro” temporally and check if not logged in visitor sees the same list of jobs.

    Did you setup any “Content view restrictions” for the jobs?

    Vladimir
    Keymaster

    Hi,

    “PressApps” menu is available to the role, but it’s not shown by “Admin menu” window, right?
    It seems this plugin addes ‘pa_non_existent_capability’ programmatically, on the fly and uses some tricks with it (possibly filters), instead of adding it to the role directly.

    You may send a copy of ‘PressApps Knowledge Base’ plugin to support email. I will investigate how to make its menu available for “Admin menu access’ module.

    Vladimir
    Keymaster

    I see just menu definition code at the provided file. Did you define your custom post types somewhere else?

    in reply to: Allow Access to WitFTP Plugin for role #2600
    Vladimir
    Keymaster

    Hi Greg,

    Open ‘Shop Manager’ role at Users->User Role Editor.
    Revoke ‘activate_plugins’, add ‘manage_options’ capability. Click ‘Update’ to save your changes.
    Test your changes. You will see that user got access to the ‘WitFTP’ menu item. But he got access to the ‘Settings’ and possibly other menus also.
    That’s why I recommended you to activate ‘Admin menu access’ add-on and block with it menu items unneeded for the ‘Shop Manager’ role.

    Let me know the result and if you need further help, including live site.

    Vladimir
    Keymaster

    Yes, send your code to the support email. It will save to me some time.

Viewing 15 posts - 1,906 through 1,920 (of 2,513 total)