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:
parent
ad2c569724
commit
600c1369da
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user