Skip to content

Commit 74478bb

Browse files
committed
[22953] Make access filters work again
1 parent 39bbcd8 commit 74478bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/controllers/access_filters_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class AccessFiltersController < ApplicationController
2-
# before_filter :require_admin
2+
before_action :require_admin
33

44
def index
55
@access_filters = AccessFilter.order(:position).all

lib/redmine_access_filters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
require 'redmine_access_filters/patches/application_controller_patch'
2-
require 'redmine_access_filters/hooks/view_layouts_hook'
2+
require 'redmine_access_filters/hooks/view_layouts_hook'

lib/redmine_access_filters/patches/application_controller_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def self.included(base)
55
base.send(:include, InstanceMethods)
66

77
base.class_eval do
8-
# before_filter :apply_access_filters
8+
before_action :apply_access_filters
99
end
1010
require "#{Rails.root}/plugins/redmine_access_filters/app/models/access_filter"
1111
end

0 commit comments

Comments
 (0)