better help desk check
This commit is contained in:
parent
a09e33a083
commit
95a4eb4ec8
|
|
@ -2863,7 +2863,7 @@ module JamRuby
|
|||
end
|
||||
|
||||
def has_support?
|
||||
return false if !subscription_trial_ended?
|
||||
return false if (!subscription_trial_ended? || subscription_sync_code == 'in_trial') && recurly_subscription_id.nil?
|
||||
return true if admin
|
||||
SubscriptionDefinitions.rules(self.subscription_plan_code)[:has_support]
|
||||
end
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class SupportsController < ApplicationController
|
|||
end
|
||||
gon.has_support = current_user.has_support?
|
||||
gon.email = current_user.email
|
||||
gon.in_trial = !current_user.subscription_trial_ended?
|
||||
gon.in_trial = !current_user.subscription_trial_ended? || subscription_sync_code == 'in_trial'
|
||||
gon.plan_code = current_user.subscription_plan_code
|
||||
|
||||
@title = "Help Desk"
|
||||
|
|
|
|||
Loading…
Reference in New Issue