File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
lib/redmine_access_filters/patches Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1+ source 'https://rubygems.org'
12# as version 2.0. is A complete rewrite and totally incompatible with 1.x. My main motivation now is to reduce bug reports resulting from the poor code quality of 1.x.
2- gem 'netaddr' , ' < 2.0 . 0
3+ # gem 'netaddr'
4+ gem 'netaddr' , '< 2.0.0'
Original file line number Diff line number Diff line change 22
33This plugin allows you to deny web or REST API access from specific IP addresses for specific users and groups
44
5- == Requirements
5+ == Requirements
66
77* Redmine 2.3+
88* Ruby 1.8.7, 1.9.3, 2.0.0
@@ -19,3 +19,9 @@ This plugin is licensed under the GNU GPL v2. See COPYRIGHT.txt and GPL.txt for
1919== Sponsorship
2020
2121Pluing development was sponsored by MEDEVIT (http://www.medevit.at)
22+
23+ == Testing
24+
25+ Checkout a redmine version, clone this plugin under plugins/redmine_acess_filters
26+ and run
27+ bundle exec rake redmine:plugins:test NAME=redmine_acess_filter
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class AccessFilter < ActiveRecord::Base
55
66 validate :parsable_cidrs
77
8- acts_as_list
8+ acts_as_tree
99
1010 # That is to clear cache on startup
1111 Rails . cache . delete ( :access_filters )
@@ -50,4 +50,4 @@ def parsable_cidrs
5050 end
5151 end
5252 end
53- end
53+ end
Original file line number Diff line number Diff 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
@@ -55,4 +55,4 @@ def access_filters
5555
5656unless ApplicationController . included_modules . include? ( RedmineAccessFilters ::Patches ::ApplicationControllerPatch )
5757 ApplicationController . send ( :include , RedmineAccessFilters ::Patches ::ApplicationControllerPatch )
58- end
58+ end
You can’t perform that action at this time.
0 commit comments