Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unaffilated list for club ambassadors not assigned to a club #5372

Conversation

shaun-technovation
Copy link
Contributor

Simple fix for club ambassadors who aren't assigned to a club accessing the unaffiliated list.

Seems like an edge case since all club ambassadors should be assigned to a club; and if they're not maybe they shouldn't have access to certain things. Anywho, since it's possible now, this a simple fix for the time being.

Copy link
Contributor

@viviancan viviancan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good

It's possible for a club ambassador to not be assigned to a club. If this happens they are still able to access the Club Admin Activity. The unaffiliated datagrid will error out if they're not assigned to a club (or chapter).

```
NoMethodError: undefined method `country_code' for #<NullChapterable:0x00007fd115046990>
```

This update will address this issue.

Refs: #5371
@shaun-technovation shaun-technovation force-pushed the 5371-fix-unaffilated-datagrid-for-club-ambassadors-not-assigned-to-a-club branch from 42caa39 to 5ec7ab9 Compare February 10, 2025 23:18
@shaun-technovation shaun-technovation merged commit 66be7ea into qa Feb 10, 2025
1 check was pending
@shaun-technovation shaun-technovation deleted the 5371-fix-unaffilated-datagrid-for-club-ambassadors-not-assigned-to-a-club branch February 10, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants