Forum Replies Created
-
AuthorPosts
-
29/06/2016 at 21:45 in reply to: Problem with view-broken-links, search_regex_read and search_regex_write #2456uclaseaswpParticipant
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.
29/06/2016 at 17:07 in reply to: Problem with view-broken-links, search_regex_read and search_regex_write #2455uclaseaswpParticipantHi, 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.
27/06/2016 at 17:23 in reply to: Problem with view-broken-links, search_regex_read and search_regex_write #2440uclaseaswpParticipantNo, 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?
uclaseaswpParticipantI 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#emailSo 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.
uclaseaswpParticipantHi 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”?
uclaseaswpParticipantHi 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!
uclaseaswpParticipantThank you!
uclaseaswpParticipantHi 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’);
306c306uclaseaswpParticipantHi, 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.
uclaseaswpParticipantHi 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.
-
AuthorPosts