Support

Home Forums Event Espresso Premium Barcode Scanner

Barcode Scanner

Posted: June 27, 2019 at 7:38 am

Viewing 1 reply thread


Dorl

June 27, 2019 at 7:38 am

Hello,
I am using the “[ESPRESSO_BARCODE_SCANNER]” shortcode to see the scanner from the frontend.
how can I limit the events to show only the events of the logged in user.


Josh

  • Support Staff

June 27, 2019 at 9:37 am

Hi,

The documentation has some information on this, but to sum up you’ll first need to apply a filter function to add a user capability check:

add_filter(
    'EED_Barcode_Scanner__scanner_form__user_can_from_shortcode',
    '__return_false'
);

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.

Then, when you set up the user roles capabilities (using the Members plugin or the User Role Editor plugin), they’ll need these capabilities at a minimum:

ee_edit_checkin
ee_edit_checkins
ee_edit_others_checkins
ee_read_checkin
ee_read_checkins
ee_read_others_checkins
ee_read_event
ee_read_events
ee_read_registration
ee_read_registrations
ee_read_others_registrations
ee_read_transaction
ee_read_transactions

and you’ll want to make sure their user role does not have this capability:

ee_read_others_events

Viewing 1 reply thread

The support post ‘Barcode Scanner’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso