fixes #1019
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
class TagCorrectionsController < ApplicationController
|
class TagCorrectionsController < ApplicationController
|
||||||
before_filter :member_only
|
before_filter :builder_only
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@correction = TagCorrection.new(params[:tag_id])
|
@correction = TagCorrection.new(params[:tag_id])
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class TagsController < ApplicationController
|
class TagsController < ApplicationController
|
||||||
before_filter :member_only, :only => [:edit, :update]
|
before_filter :builder_only, :only => [:edit, :update]
|
||||||
respond_to :html, :xml, :json
|
respond_to :html, :xml, :json
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
|||||||
@@ -17,9 +17,11 @@
|
|||||||
<%= link_to(tag.name, posts_path(:tags => tag.name)) %>
|
<%= link_to(tag.name, posts_path(:tags => tag.name)) %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to "edit", edit_tag_path(tag) %>
|
<% if CurrentUser.is_builder? %>
|
||||||
<% if tag.post_count < 1_000 %>
|
<%= link_to "edit", edit_tag_path(tag) %>
|
||||||
| <%= link_to "fix", new_tag_correction_path(:tag_id => tag.id) %>
|
<% if tag.post_count < 1_000 %>
|
||||||
|
| <%= link_to "fix", new_tag_correction_path(:tag_id => tag.id) %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user