You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden push ownership checks against nil comparisons (#4704)
* Harden push ownership checks against nil comparisons
Centralize ownership in Push#owned_by? so audit, edit, update,
and related paths require a present authenticated owner instead
of comparing optional user associations directly.
* Require present user_id in Push#owned_by?
Guard against nil == nil when a non-persisted User.new is passed
for an anonymous push, and cover that case in tests.
---------
Co-authored-by: Peter Giacomo Lombardo <pglombardo@apnotic.com>
0 commit comments