Support

Home Forums Event Espresso Premium Restricting certain users from full contact list

Restricting certain users from full contact list

Posted: July 13, 2020 at 12:55 pm


refocuseducation

July 13, 2020 at 12:55 pm

Hi there!

We need to restrict certain users (special user role: Instructor) to only see the attendees for their events in the contact list tab. Right now, they can see contact information for everyone’s events.

We have changed some permissions to try to achieve this. We tried restricting the ee_read_others_checkins permission, and that hid the contact list but then no contact names showed up in the app for them to checkin. How can we have the Instructors only see contact information for their attendees, but still have the information show up for their class in the app?

Please help, thanks!


Tony

  • Support Staff

July 15, 2020 at 5:08 am

We need to restrict certain users (special user role: Instructor) to only see the attendees for their events in the contact list tab. Right now, they can see contact information for everyone’s events.

Current you can’t, the contact list will simply pull all contacts.

However, may I ask why you need to use the contact list tab?

The reason I ask is you could simply remove access to the list itself, the user should then still have access to the contact into within each individual registration.

How can we have the Instructors only see contact information for their attendees, but still have the information show up for their class in the app?

This sounds like you don’t actually need the contact list tab, right?

To remove the tab you can remove the ee_read_contacts capability and that should still show the details for specific contacts in the registrations and the app.


refocuseducation

July 15, 2020 at 11:35 am

Hi Tony, thanks for getting back to me!

You’re right, the Instructors don’t really need to see the contact list tab if they can see contact information through their registrations. I turned off ee_read_contacts and it fixed the backend of WordPress, but when I login to the app, I don’t see any contact information for the registrants. When I click on attendees like I would to check someone in, no names or information show up for the registrant. The instructor won’t be able to see who they are checking in. Please advise!


refocuseducation

July 17, 2020 at 12:40 pm

Hi Tony, Following up on this. Any ideas from my previous post?


Tony

  • Support Staff

July 20, 2020 at 4:30 pm

I spent some time digging into this and you will need the ee_read_contacts cap on the account for the app, however you can override the capability check when displaying the contact list tab to work around this.

So add the above cap back onto the account and then add this snippet to your site:

https://gist.github.com/Pebblo/52830fbd3bdaf61992a96cf78ab9b395

The app will have access to the contact info but the ‘Contact list’ tab will not show for any users that do NOT have the ‘manage_options’ capability. So it won’t show for anyone that is not an ‘Administrator’ by default.

You can add that snippet to a site-specific plugin on the site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Just a quick side note, we view threads listed based on their last reply date so whilst you are free to ‘bump‘ your threads if you wish it will generally have the opposite effect than intended as it puts the thread to the back of our support queue.


refocuseducation

July 21, 2020 at 7:50 am

Awesome, I think this worked! Thanks 🙂


Tony

  • Support Staff

July 21, 2020 at 12:55 pm

You’re most welcome.

The support post ‘Restricting certain users from full contact list’ 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