Home Forums Ticketing Add-on Iphone App Permission Problems

Iphone App Permission Problems

Posted: June 23, 2013 at 3:09 am

esteban soto

June 23, 2013 at 3:09 am

There is a problem. Everybody who is a user including “subscribers” can see all the events in the app and check in every atendee from every event.


  • Support Staff

June 24, 2013 at 11:49 am

Hi Esteban,

It sounds like you’re using the older espresso services API. You can add a check for the admin role before the API displays older events by adding the following after line 50 of the espresso-services/events.php file:

//Get the role for this user
$caps = get_user_meta($userid, 'wp_capabilities', true);
$roles = array_keys((array)$caps);
//Set this to whatever role is needed to scan tickets
if ($roles[0] == 'administrator'){
    die("<?xml version='1.0'?><events><error>4</error><desc>Invalid User Role</desc></events>");

The support post ‘Iphone App Permission Problems’ 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