Posted: May 1, 2023 at 3:55 pm
Hello, Logged out users can see:
Logged in users can see:
I am using PMP for members I have tried a variety of actions but in every instance the tickets still displays when it shouldn’t (ie non-cap user or not correct membership level Example – membership role with cap
Example – by cap
Thank you |
|
This reply has been marked as private. | |
You’ll need to have the WordPress User Integration installed and active to set the role or capability for the ticket, there will be an additional settings area to select the role or add a custom capability in the advanced settings of the ticket. Be sure to be using version 2.1.1.p or greater of the WP User Integration. This is what it looks like in EE5: https://www.screencast.com/t/jRe9G7af |
|
Garth, I have EE Version 5.0.3.p installed with WP User Integration 2.2.1. I believe I have the ticket setup properly but can’t hide it from non-cap logged users. I will send you admin login. Thank you |
|
This reply has been marked as private. | |
Can you send a link to your website, the tiny url above is not working. |
|
This reply has been marked as private. | |
I enabled the New Editor in Event Espresso > Events > Default Settings If you edit a ticket, you will now see those settings. Here is a video: https://www.screencast.com/t/B4oO1t5RTGt4 |
|
Garth, I am a little confused. I had the capability set before and that hasn’t changed with the new editor. I used a couple of different variations of code(above) to try and hide the ‘rsvp’ capable ticket from those users who don’t have that capability when logged in. You can use the resident@… user I included above. The situation is that I can’t hide the ticket and also anyone claim that ticket, without ‘rsvp’ capability. Thank you. |
|
The resident user you added above is assigned to a role (
When not logged in, I see the ‘no access’ messages meaning I don’t have the capability: https://monosnap.com/file/UAh5rFfUnwGmUiXNb0leWmFjlAVW71 So you basically just want to remove the ticket from view from users who are logged in but still don’t have the correct capability? Logged-in users who do NOT have the cap would see the same screen as my screenshot above, so you just want to remove that row from view? |
|
That is correct. I am so sorry for wasting your time. It works as expected with the correct role/settings. Too much going on at once. I appreciate the fresh eyes. We love Event Espresso! Thank you. |
|
So it sounds like you need something like this: You may want to add a check to see if the current user is an admin and allow them to see the tickets, but the above gets you the functionality you are looking for. |
|
The support post ‘Hiding Ticket for logged in users who don't have capability’ 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.