• Resolved paywall

    (@paywall)


    Hello,

    Our logged-in site users that are “subscribers” are no longer able to submit events.

    Here’s a view for a logged in subscriber on the submit event page:

    We tried the steps mentioned here, but that did not resolve the problem.

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support jathinhelp

    (@jathinhelp)

    Hello,

    @paywall We’d like to inform you that only organizers and admins will have access we have added this enhancement because of security concerns.

    Regards,

    WP Event Manager.

    Thread Starter paywall

    (@paywall)

    Hello,

    Since thousands of our users are only subscribers, this means they will not be able to submit events while logged in. Our clients are receiving emails that their users can’t submit events anymore.

    Is it possible to make an exception? I suppose we could write a custom snippet or roll the plugin back.

    Thanks for your help.

    Plugin Support jathinhelp

    (@jathinhelp)

    Hello,
    @paywall if you wish to revert this functionality and allow subscribers to post events again, you can do so by coImenting out a specific line in the plugin’s code. Please follow these steps:

    1. Open the file located at:
      wp-content\plugins\wp-event-manager\wp-event-manager.php
    2. Find line number 121 and comment it out as shown below:
      // add_action('wp_event_manager_event_submit_before', array($this, 'wpem_restrict_non_organizer_access_to_dashboard'));

    By commenting out this line, the restriction on event submission for subscribers will be removed. Please let us know if you need further assistance or clarification. We appreciate your understanding.

    Regards,
    WP Event Manager.

    bnbarbour

    (@bnbarbour)

    @jathinhelp how do you accomplish your solution without it getting overwritten in future updates? Adding it where you suggest will get overwritten with any plugin update

    Thread Starter paywall

    (@paywall)

    We created this snippet as a workaround while we await an update from WP Event Manager.

    This can be added via Code Snippets or within your theme functions etc to allow all user roles the ability to submit events again.

    function remove_wpem_restrict_non_organizer_access() {
    remove_action('wp_event_manager_event_submit_before', array(WP_Event_Manager::instance(), 'wpem_restrict_non_organizer_access_to_dashboard'));
    }
    add_action('init', 'remove_wpem_restrict_non_organizer_access', 20);

    @paywall

    I copy and paste your code in code snippets, but it doesn’t work. Logged in subscribers can’t still not change there events after publishing.

    Does it still work for you?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Logged in users cannot submit events’ is closed to new replies.