diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 183107cb6..70618db9e 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -34,10 +34,12 @@ <% if @memo.author.id == User.current.id || User.current.admin? %>
  • 编辑
  • <% end %> - <% if @memo.sticky %> -
  • 取消置顶
  • - <% else %> -
  • 置顶
  • + <% if User.current.admin? || User.current == @forum.creator %> + <% if @memo.sticky %> +
  • 取消置顶
  • + <% else %> +
  • 置顶
  • + <% end %> <% end %>
  • 删除