diff --git a/app/views/tag/_tagging.html.erb b/app/views/tag/_tagging.html.erb index 74bef8d0f4f..8dd0cc97100 100644 --- a/app/views/tag/_tagging.html.erb +++ b/app/views/tag/_tagging.html.erb @@ -17,9 +17,11 @@ $(function () { }) +<% parent ||= nil %> + +<% if parent != :profile || (current_user && (current_user.id == @user.id || current_user.role == "admin")) %> <% url = url || "/tag/create/" + @node.id.to_s %> -<% if current_user %>