summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-25 18:11:50 -0500
committerPeter Kozak <spag@golwen.net>2013-02-25 18:11:50 -0500
commitad2121462a9ea9a776756a188779a9d504f078b7 (patch)
tree2d338ad19a5cd8e9decfa520f49a4c424e062916 /app/controllers
parent387ce8f6694b41ab73d264190ce41dcd13484ede (diff)
authorization added
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/intruders_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/intruders_controller.rb b/app/controllers/intruders_controller.rb
index 99cb023..d3c767e 100644
--- a/app/controllers/intruders_controller.rb
+++ b/app/controllers/intruders_controller.rb
@@ -1,4 +1,6 @@
class IntrudersController < ApplicationController
+ load_and_authorize_resource :intruder
+
def index
@intruders = Intruder.order('list_type ASC, contact_last DESC').all
spread_breadcrumbs