From c0ae01018b8cd61f0f32f2438edb80ae3865cddc Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 23 Mar 2017 05:01:01 -0400 Subject: [PATCH] Update payments_controller.rb --- 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 57a0153..290281a 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -12,7 +12,7 @@ class PaymentsController < ApplicationController include AuthHelper - before_filter :find_project, :authorize, :only => :new + before_filter :find_project, User.current.allowed_to?(:add_paypments, @project) def new @payment = Payment.new