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.
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?
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.