From 21d5bd54e1a6a4c0b8f0835fd75b25d609ed6303 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 23:22:20 +0200 Subject: [PATCH] fix(settings): add nil-safe operator to Current.family.can_manage_subscription? (#2006) Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com> --- app/views/settings/_settings_nav.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/_settings_nav.html.erb b/app/views/settings/_settings_nav.html.erb index f9e5e975b..71cf9ff42 100644 --- a/app/views/settings/_settings_nav.html.erb +++ b/app/views/settings/_settings_nav.html.erb @@ -9,7 +9,7 @@ nav_sections = [ { label: t(".appearance_label"), path: settings_appearance_path, icon: "palette" }, { label: t(".profile_label"), path: settings_profile_path, icon: "circle-user" }, { label: t(".security_label"), path: settings_security_path, icon: "shield-check" }, - { label: t(".payment_label"), path: settings_payment_path, icon: "circle-dollar-sign", if: !self_hosted? && Current.family.can_manage_subscription? } + { label: t(".payment_label"), path: settings_payment_path, icon: "circle-dollar-sign", if: !self_hosted? && Current.family&.can_manage_subscription? } ] }, {