]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing authentication call in filters controller (#12746)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 3 Jan 2020 04:29:08 +0000 (05:29 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2020 04:29:08 +0000 (05:29 +0100)
app/controllers/filters_controller.rb

index d2e0fb73907f243bbae10be4b3bd6e2ce20c74ec..63d9d9cd37244fe81d84db26b413f7040c4ec0ec 100644 (file)
@@ -1,10 +1,9 @@
 # frozen_string_literal: true
 
 class FiltersController < ApplicationController
-  include Authorization
-
   layout 'admin'
 
+  before_action :authenticate_user!
   before_action :set_filters, only: :index
   before_action :set_filter, only: [:edit, :update, :destroy]
   before_action :set_body_classes