Support

Home Forums Event Espresso Premium Ticket Capability Requirement not working (2)

Ticket Capability Requirement not working (2)

Posted: February 4, 2019 at 11:15 pm

Viewing 5 reply threads


ARAGATO

February 4, 2019 at 11:15 pm

I have got an event with multiple tickets.
All tickets have a ticket capability right.
http://uploads.aragato-server.net/screenshots/2019020567b1ba1de2.png

I have got multiple roles like employee role and student role.
User get assigned those roles to be either a student or an employee.
Those roles have the respective rights included, e.g. the employee role has the acms_employee_read_ticket. This right acms_employee_read_ticket is then added to employee tickets as a ticket capability.

However, it does not work. Other users, like students who do not have the acms_employee_read_ticket can still see and book the ticket that has the required capability which the user does not have.

Any ideas why that is?

  • This topic was modified 5 years, 9 months ago by Tony.
  • This topic was modified 4 years, 8 months ago by Garth.


Tony

  • Support Staff

February 5, 2019 at 4:42 am

Hi there,

Can you link me to an event I can view the above ticket on, please?


ARAGATO

February 5, 2019 at 4:46 am

Unfortunately not, this is in local dev environment.


Tony

  • Support Staff

February 5, 2019 at 4:52 am

Ok, so based on the above, either, the role of the user has the capability or the user themselves have the cap on their account or, your hooking into the function used and overriding it, causing it to display the ticket regardless.

Have you tested viewing the ticket whilst logged out?
Does it still display then?


Josh

  • Support Staff

February 5, 2019 at 6:52 am

Further to the above, the filter that’s used by WP User add-on is
FHEE__ticket_selector_chart_template__do_ticket_inside_row
So if you have a custom function that’s attached to that filter, then that could be causing the ticket row to display without having the matching capabilities.


ARAGATO

February 7, 2019 at 2:21 am

Thanks for that hint Josh. It was indeed “leaky” implementation of said filter. Fixed, works and solved.

Viewing 5 reply threads

The support post ‘Ticket Capability Requirement not working (2)’ 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