Added before filter to check permissions

This commit is contained in:
2017-03-23 04:50:17 -04:00
committed by GitHub
parent 7cfa15910a
commit 863437b1b7

View File

@@ -12,7 +12,7 @@ class PaymentsController < ApplicationController
include AuthHelper
before_filter :require_user
before_filter :add_payments, :authorize
def new
@payment = Payment.new