deprecate tag subscriptions with warnings

This commit is contained in:
r888888888
2017-04-14 16:00:20 -07:00
parent 8b38e4d39a
commit 97da8f8647
16 changed files with 22 additions and 147 deletions

View File

@@ -1,4 +1,5 @@
class TagSubscriptionsController < ApplicationController
before_filter :disable_feature, :only => [:create]
before_filter :member_only, :only => [:new, :edit, :create, :update, :destroy, :migrate]
respond_to :html, :xml, :json
@@ -70,6 +71,12 @@ class TagSubscriptionsController < ApplicationController
end
private
def disable_feature
flash[:notice] = "Tag subscriptions are disabled"
redirect_to tag_subscriptions_path
return false
end
def check_privilege(tag_subscription)
raise User::PrivilegeError unless tag_subscription.editable_by?(CurrentUser.user)
end