From 863437b1b75683b38415be6fbb5dc84d80e78ff7 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 23 Mar 2017 04:50:17 -0400 Subject: [PATCH] Added before filter to check permissions --- app/controllers/payments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/payments_controller.rb b/app/controllers/payments_controller.rb index 347b416..d96bf94 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -12,7 +12,7 @@ class PaymentsController < ApplicationController include AuthHelper - before_filter :require_user + before_filter :add_payments, :authorize def new @payment = Payment.new