Remove fallback to nil for Current. organization&.id
What does this MR do and why?
This merge request removes the safe navigation operator (&.) from calls to Current.organization.id across multiple files. This change reflects that Current.organization is expected to always be present in these contexts. For more details, check reference.
Risk Assessment
Low risk: This change is relatively straightforward, but we should ensure that all code paths properly initialize Current.organization. If there are edge cases where Current.organization could be nil, this change could potentially introduce NoMethodError exceptions.
Implementation Notes
The change simplifies code and makes it more explicit that we expect Current.organization to be present. If there are any paths where it might not be, those should be identified and handled separately.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #533314 (closed)