diff --git a/app/views/pages/privacy.html.erb b/app/views/pages/privacy.html.erb index 4096345..8514197 100644 --- a/app/views/pages/privacy.html.erb +++ b/app/views/pages/privacy.html.erb @@ -6,7 +6,7 @@ context: "privacy", key: "body", rich_text: true, default: "No content yet. Please add a privacy policy.") %> - <% if current_user.is_admin? %> + <% if user_signed_in? && current_user.is_admin? %>
<%= render EditContentButtonComponent.new( context: "privacy", key: "body", rich_text: true, diff --git a/app/views/pages/tos.html.erb b/app/views/pages/tos.html.erb index cdeb6a5..e42238a 100644 --- a/app/views/pages/tos.html.erb +++ b/app/views/pages/tos.html.erb @@ -6,7 +6,7 @@ context: "tos", key: "body", rich_text: true, default: "No content yet. Please add your terms of service.") %> - <% if current_user.is_admin? %> + <% if user_signed_in? && current_user.is_admin? %>
<%= render EditContentButtonComponent.new( context: "tos", key: "body", rich_text: true,