lib/lockdown/rules.rb in lockdown-0.8.0 vs lib/lockdown/rules.rb in lockdown-0.8.1

- old
+ new

@@ -260,15 +260,15 @@ def parse_permissions permission_objects.each do |name, perm| @permissions[perm.name] ||= [] perm.controllers.each do |name, controller| - @permissions[perm.name] << controller.access_methods + @permissions[perm.name] |= controller.access_methods if perm.public_access? - @public_access.concat controller.access_methods + @public_access |= controller.access_methods elsif perm.protected_access? - @protected_access.concat controller.access_methods + @protected_access |= controller.access_methods end end end end