I have read in several topics that there is no user permission restrictions when someone is using the (Android) ticketing app. Do you have any news about it (current solution, futures plans, costs, workarounds)? I was interested in defining regional managers which could scan only their events.
Thanks.
While it will not separate out events per user account, you can add a check in the older API’s events.php file starting right after line 51 like this:
//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'){ //checks for admin level
//Continue
}else{
die("<?xml version='1.0'?><events><error>4</error><desc>Invalid User Role</desc></events>");
}
Viewing 4 reply threads
The support post ‘Ticketing app permission check’ 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.