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