Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • uclaseaswp
    Participant

    Hi, I figured it out. The conflict between custom_page and custom_news is that the Admin Menu of custom_news had Available Tools blocked under Tools, while the Admin Menu of custom_page does not even list Tools. This is resolved.

    uclaseaswp
    Participant

    Hi, I think I know what’s happening. I have 2 roles: custom_page and custom_news. See http://www.seas.ucla.edu/temp/user_role_editor/custom_page_role.png and http://www.seas.ucla.edu/temp/user_role_editor/custom_news_role.png. This is because some users can only edit pages and some can only edit posts (for news). If I give a user just custom_page, there is no problem with viewing Tools > Search Regex and Tools > Broken Links. However, as soon as I add another role custom_news to the same user, I can no longer access the pages referenced by viewing Tools > Search Regex and Tools > Broken Links even though my combined capabilities is shown at http://www.seas.ucla.edu/temp/user_role_editor/combined_page_news_roles.png. As soon as I remove custom_news, everything works again. Can you try this and see what conflict did custom_news introduced? Thanks.

    uclaseaswp
    Participant

    No, I did not restrict anything in the Admin Menu. Please see that attached screenshots. Note that I tried giving all capabilities to this role already, but that still did not work (of course in production, I cannot give all capabilities). How can I attach images here for the screenshots?

    uclaseaswp
    Participant

    I see. I always use “Block Selected” model, but I’m not using the default “author” role. I created my own role and added “manage_options” capability and was trying to block all in Events > Settings:

    edit.php?post_type=event&page=events-manager-options#general
    edit.php?post_type=event&page=events-manager-options#pages
    edit.php?post_type=event&page=events-manager-options#format
    edit.php?post_type=event&page=events-manager-options#email

    So what you’re explaining is not working for my own role with added “manage_options” capability. It’s ok, I will hack the code for Events Manager instead.

    uclaseaswp
    Participant

    Hi Vladimir, I’m totally lost about “Block Selected” model and “Block not selected” model. Where do I go to do “Block Selected” or “Block not selected”?

    uclaseaswp
    Participant

    Hi Vladimir, I upgraded to 4.24.3, but I still cannot block Events-Settings. The only different between version 4.23.2 and 4.24.3 that I noticed is that manage_options’s Admin Menu now has Settings > Shibboleth in 4.24.3, but does not have this in 4.23.2. I have Shibboleth installed when in both 4.23.2 and 4.24.3. Shibboleth was not a problem though since I blocked the entire Settings. However, Events-Settings is a problem. Could you please check? Thanks!

    uclaseaswp
    Participant

    Thank you!

    uclaseaswp
    Participant

    Hi again, I am now able to prevent Events Manager plugin’s Events > Settings from appearing when manage_options is selected, but changing its code as follow (changed manage_options to update_plugins). However, I’m suspecting that there is a bug in the Admin Menu Access module that is preventing me to block Dashboard > Events > Settings when manage_options is selected . Note that I can block Dashboard > Settings. Could you please let me know if this is a bug?

    diff plugins/events-manager/admin/em-admin.php plugins/events-manager/admin/em-admin.php.ORIG
    40,41c40,41
    < $plugin_pages[‘options’] = add_submenu_page(‘edit.php?post_type=’.EM_POST_TYPE_EVENT, __(‘Events Manager Settings’,’events-manager’),__(‘Settings’,’events-manager’), ‘update_plugins’, “events-manager-options”, ’em_admin_options_page’);
    < $plugin_pages[‘help’] = add_submenu_page(‘edit.php?post_type=’.EM_POST_TYPE_EVENT, __(‘Getting Help for Events Manager’,’events-manager’),__(‘Help’,’events-manager’), ‘update_plugins’, “events-manager-help”, ’em_admin_help_page’);

    > $plugin_pages[‘options’] = add_submenu_page(‘edit.php?post_type=’.EM_POST_TYPE_EVENT, __(‘Events Manager Settings’,’events-manager’),__(‘Settings’,’events-manager’), ‘manage_options’, “events-manager-options”, ’em_admin_options_page’);
    > $plugin_pages[‘help’] = add_submenu_page(‘edit.php?post_type=’.EM_POST_TYPE_EVENT, __(‘Getting Help for Events Manager’,’events-manager’),__(‘Help’,’events-manager’), ‘manage_options’, “events-manager-help”, ’em_admin_help_page’);
    306c306

    uclaseaswp
    Participant

    Hi, please note that while I do use Admin Menu Access module to block Settings (when I use manage_options), I cannot block Events > Settings, which is outside of Settings. If I can block Events > Settings, that is an option too. The ideal option is to have own capability for the contact form plugin, so I don’t need to enable the dangerous manage_options and then have to use Admin Menu Access to disable things.

    uclaseaswp
    Participant

    Hi Vladimir, I’ve been doing as you suggested above, but all of a sudden (not sure if it is the result of the upgrade to 4.23.2 and I would have to roll back to find out, but I cannot roll back), manage_options causes Event Manage plugin Events > Settings to appear and I am not able to block this Settings with Admin Menu Access module. Please advise. A hack to either your plugin or the contact form plugin will be ok if there is no other option. I’m not familiar with wordpress development, so I would not know where to hack. Thank you.

Viewing 10 posts - 1 through 10 (of 10 total)