From ca178071172879de50e4127cbce18973912e43b4 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 23 Mar 2017 05:29:54 -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 0cf22ef..fb630be 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -38,7 +38,7 @@ class PaymentsController < ApplicationController private def check_permissions - if !allowed_to?(:add_paypments) + if !allowed_to?(:add_payments) render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true end end