Repository navigation
Organisers can contact members through UI - #3084
Draft
davidmillen50 wants to merge 21 commits into
Draft
davidmillen50 wants to merge 21 commits into
davidmillen50 wants to merge 21 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
davidmillen50
marked this pull request as draft
November 10, 2026 14:51
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Block banned members from the chapter contact menu and routes, allow workshop, event and meeting organisers to contact their chapter, and add policy, controller and feature coverage for access by role. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…roles Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates to #2310
notes:
the email body text body will take html and render it in the email. Simple_format is used in contact.html.haml and Rails sanitizes simple_format input by default. Any disallowed tags and unsafe attributes should be removed; common formatting html tags may still render.
Access to the contact form (menu item "Contact chapter" and the
/admin/chapter_contactsand/admin/chapters/:id/contactroutes)Who has access:
organiserrole with no chapter): all chaptersWho does not have access (no menu item, and direct URLs redirect to the home page):
Access is enforced by
ChapterPolicy#contact?and#contact_index?in every controller action, and the menu item uses the same policy. Covered by policy, controller and feature specs.Testing
I tested each email group locally and they all sent emails correctly:
tested admin/organiser who hasn't accepted terms and conditions cannot access the contact page ✅
Screenshots


Example of sending to a group
Go to Menu/contact chapter