Update payments_controller.rb

This commit is contained in:
2017-03-23 05:27:38 -04:00
committed by GitHub
parent 78ac97298c
commit a70ba2f164

View File

@@ -38,7 +38,9 @@ class PaymentsController < ApplicationController
private private
def check_permissions def check_permissions
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true if! allowed_to?(:add_paypments) if !allowed_to?(:add_paypments)
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end
end end
def only_one_non_zero?( array ) def only_one_non_zero?( array )