From 65b5159197cfee6916a8c1d3241a635cd7add31f Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Mar 2013 17:08:46 -0700 Subject: [PATCH] fixes #1019 --- app/controllers/tag_corrections_controller.rb | 2 +- app/controllers/tags_controller.rb | 2 +- app/views/tags/index.html.erb | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/controllers/tag_corrections_controller.rb b/app/controllers/tag_corrections_controller.rb index 43319da2d..1959e4556 100644 --- a/app/controllers/tag_corrections_controller.rb +++ b/app/controllers/tag_corrections_controller.rb @@ -1,5 +1,5 @@ class TagCorrectionsController < ApplicationController - before_filter :member_only + before_filter :builder_only def new @correction = TagCorrection.new(params[:tag_id]) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 7a25bb83e..0b8c8022d 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -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 diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 350cbd619..3b78ca6e1 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -17,9 +17,11 @@ <%= link_to(tag.name, posts_path(:tags => tag.name)) %> - <%= 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 %>