Support

Home Forums Event Espresso Premium EE4 – Code – Different behaviour folowing profiles

EE4 – Code – Different behaviour folowing profiles

Posted: May 12, 2016 at 2:11 pm


JacquesMivi

May 12, 2016 at 2:11 pm

Hello,

I have a strange trouble. I am creating template with Genesis. And the folowwing code works with my account, but no with another account

// Works good on every account
$registrations = EEM_Registration::instance()->get_all(array(array( 'TKT_ID' => $tkt_id))); 

foreach($registrations as $registration){

// Trouble to get informations
$statu_oneach = $registration->status_ID();
$complete_fname = $registration->attendee()->fname();
$complete_lname = $registration-attendee()->lname();

// Some echo		
}

Have you an idea why ?


Josh

  • Support Staff

May 13, 2016 at 7:53 am

That might be related to the user’s capabilities. Does the other user account have the same capabilities that your account has? Here’s a link to the documentation that has an overview of the EE4 Capability System:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/K–Capability-System/ee-capability-system-overview.md

The support post ‘EE4 – Code – Different behaviour folowing profiles’ 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