1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-11 05:54:15 +01:00
fab-manager/app/policies/payment_policy.rb
Sylvain 78518e17fb read stripe_currency from the UI
We prevent the currency from being changed if any stripe payment was made, because a stripe user cannot made pay with different currencies. If we try to charge a user with a different currency than the currency he used for a previous payment, this will fail; so we must prevent this case
2020-06-10 16:37:11 +02:00

9 lines
182 B
Ruby

# frozen_string_literal: true
# Check the access policies for API::PaymentsController
class PaymentPolicy < ApplicationPolicy
def online_payment_status?
user.admin?
end
end