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