mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
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
9 lines
182 B
Ruby
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
|