2020-06-10 16:37:11 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Check the access policies for API::PaymentsController
|
|
|
|
class PaymentPolicy < ApplicationPolicy
|
|
|
|
def online_payment_status?
|
2020-06-15 16:56:43 +02:00
|
|
|
user.admin? || user.manager?
|
2020-06-10 16:37:11 +02:00
|
|
|
end
|
|
|
|
end
|