Fix pages views when signed out
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao 2025-06-12 16:09:42 +04:00
parent 32b1c2748a
commit 3bd07472b2
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
context: "privacy", key: "body", rich_text: true, context: "privacy", key: "body", rich_text: true,
default: "No content yet. Please add a privacy policy.") %> default: "No content yet. Please add a privacy policy.") %>
<% if current_user.is_admin? %> <% if user_signed_in? && current_user.is_admin? %>
<div class="mt-8 pt-6 border-t border-gray-200 text-right"> <div class="mt-8 pt-6 border-t border-gray-200 text-right">
<%= render EditContentButtonComponent.new( <%= render EditContentButtonComponent.new(
context: "privacy", key: "body", rich_text: true, context: "privacy", key: "body", rich_text: true,

View File

@ -6,7 +6,7 @@
context: "tos", key: "body", rich_text: true, context: "tos", key: "body", rich_text: true,
default: "No content yet. Please add your terms of service.") %> default: "No content yet. Please add your terms of service.") %>
<% if current_user.is_admin? %> <% if user_signed_in? && current_user.is_admin? %>
<div class="mt-8 pt-6 border-t border-gray-200 text-right"> <div class="mt-8 pt-6 border-t border-gray-200 text-right">
<%= render EditContentButtonComponent.new( <%= render EditContentButtonComponent.new(
context: "tos", key: "body", rich_text: true, context: "tos", key: "body", rich_text: true,