In EE3, we could assign a region/locale to a user, and they would be able to see/edit only their own region’s events. How can I accomplish this separation in EE4?
There’s a built-in capabilities system in Event Espresso 4 that you can use along with a plugin like User Role Editor to restrict user accounts so they can only read and edit their events. It’s built on and works much like WordPress’s user system where you can set up roles to only allow editing their own posts and pages. There’s some more information in this wiki:
A few of the capabilities you’ll unset for those user roles/accounts include ee_read_others_events and ee_edit_others events, and there are more to allow for finer control over who does what.
I am looking for the capability to have users view and edit their region’s events, which includes their events and events from other users in their region, but not regions they don’t belong to.
This sounds like something that could be accomplished with some custom development, as regions are not something included out of the box in Event Espresso 4. Here’s a link to some documentation in the developer portal that gives an overview of how to extend Event Espresso’s capabilities system:
OK. So basically we need to either (A) use a token for custom development or (B) install Members or some similar plugin and code the capabilities via the API?
Option a isn’t really an option because we do not generally do custom development for tokens. Instead I can recommend contacting one of the developers listed on this page for a quote:
The support post ‘Regional separation for users’ 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.