CiviCRM module to use relationships edit rights to determine event visibility
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


[CiviCRM] ( module to use contact relationships edit rights to determine event visibility and editability in CiviCRM administration screens.

This module uses relationships intead of groups or ACL to limit visibility and editability. The whole relationship tree is searched and all events that are owned by contacts to where user has edit permissions through relationships are made visible and editable. All contact types are searched.

This module filters search results rows on following pages:

  • Event Dashboard
  • Manage Events
  • Find contributions (for Event contributions)
  • Contribution dashboard (for Event contribution)
  • Find participants
  • Contact Contributions tab
  • Contact Events tab
  • Contact Actvity tab (for Event participations)
  • Event reports critera and results
  • Contribution reports results (for Event contributions)

It also prevents user from accessing following pages by direct URL without permissions:

  • Event edit page
  • Participant edit page
  • Contribution edit page (for Event contributions)

This module requires a custom field to event that specifies event owner contact ID.

Portions of this module is based on the idea of [Relationship Permissions as ACLs] ( extension. This module includes code from relationshipACL module.

Version history

Version history and changelog is available in Releases.


  • Organisation 1
  • Sub-organisation 1 (Organisation 1 has edit relationship to this organisation)
  • Sub-organisation 2 (Sub-organisation 1 has edit relationship to this organisation)
  • User 1 (has edit relationship to Sub-organisation 1)


  • Event 1. Owned by Organisation 1.
  • Event 2. Owned by Sub-organisation 2.

With this module User 1 can see and edit Event 2 but not Event 1. Event 2 is owned by Sub-organisation 2 that User 1 has edit rights. User 1 does not have edit rights to Organisation 1 so this event is invisible to user.


  1. Copy com.github.anttikekki.relationshipEventACL folder to CiviCRM extension folder and enable extension in administration.
  2. Rebuild navigation menu. Go to Administer -> System Settings -> Cleanup Caches and Update Paths and push Cleanup caches.
  3. Go to Administer -> RelationshipEventACL -> Settings and set Event custom field id that stores owner contact info.

This module uses temporary tables in database so CiviCRM MySQL user has to have permissions to create these kind of tables.

Performance considerations

This module performance on large CiviCRM sites may be poor. Module needs to determine the relationship tree structure on every administration event pageload. The relationship tree may be deep and complex. This means 1 query for every relationship level. The search done with help of temporary table in database.

This logic may lead to multiple large queries and large temporary table on every event page load in contact administration.


GNU Affero General Public License