Update payments_controller.rb

This commit is contained in:
2017-03-23 05:25:57 -04:00
committed by GitHub
parent 72cd349c1b
commit 78ac97298c

View File

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