1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bugfix] fix error in SubscriptionPolicy#show?, was causing an error notice, making user think that the payment was not done, but it was

This commit is contained in:
Nicolas Florentin 2022-02-07 13:50:00 +01:00
parent ad2c569724
commit 600c1369da

View File

@ -3,7 +3,7 @@
# Check the access policies for API::SubscriptionsController
class SubscriptionPolicy < ApplicationPolicy
def show?
user.admin? or record.user_id == user.id
user.admin? || user.manager? || record.user.id == user.id
end
def payment_details?