修复贴吧标签不能删除的bug

This commit is contained in:
chenmin 2014-08-15 11:21:11 +08:00
parent e18129c935
commit 33b5f821c4
1 changed files with 7 additions and 0 deletions

View File

@ -70,7 +70,14 @@
:taggable_id => obj.id, :taggable_type => object_flag %> </span> :taggable_id => obj.id, :taggable_type => object_flag %> </span>
<% end %> <% end %>
<% when '5' %>
<% if Forum.find(params[:id]) %>
<% if Forum.find(params[:id]).creator_id == User.current.id %>
<span class='del'> <%= link_to 'x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag,
:taggable_id => obj.id, :taggable_type => object_flag %> </span>
<% end %>
<% end %>
<% when '6' %> <% when '6' %>
<% if (User.current.logged? && <% if (User.current.logged? &&
User.current.admin? User.current.admin?