From 01e8079b16ab7ce19a305865c9c4fe0960d31556 Mon Sep 17 00:00:00 2001 From: qichunren Date: Sat, 22 Jun 2024 17:50:12 +0800 Subject: [PATCH] Only display dropdown menu for authenticated users in topics#show page --- app/views/topics/_buttons.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/topics/_buttons.html.erb b/app/views/topics/_buttons.html.erb index a5cede217d..cb803cbc35 100644 --- a/app/views/topics/_buttons.html.erb +++ b/app/views/topics/_buttons.html.erb @@ -4,12 +4,14 @@ <%= topic_follow_tag(@topic) %> <%= topic_favorite_tag(@topic) %> <% end %> + <% if current_user %>
- + <% end %> + \ No newline at end of file