修复贴吧标签不能删除的bug
This commit is contained in:
parent
e18129c935
commit
33b5f821c4
|
@ -70,7 +70,14 @@
|
|||
:taggable_id => obj.id, :taggable_type => object_flag %> </span>
|
||||
|
||||
<% 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' %>
|
||||
<% if (User.current.logged? &&
|
||||
User.current.admin?
|
||||
|
|
Loading…
Reference in New Issue