Unifica admin società/squadre e YouTube Full con fallback MLTV.
Premium Full senza canale società usa il canale piattaforma come Light; in app restano solo Match Live TV e YouTube Live. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,13 +3,14 @@ module Admin
|
||||
before_action :set_club, only: %i[show grant_comped revoke_comped]
|
||||
|
||||
def index
|
||||
@clubs = Club.includes(:subscription, subscription: :plan, subscription: :admin_comped_by)
|
||||
@clubs = Club.includes(:subscription, :teams, subscription: :plan, subscription: :admin_comped_by)
|
||||
.order(:name)
|
||||
end
|
||||
|
||||
def show
|
||||
@subscription = @club.subscription || @club.build_subscription(plan: Plan["free"], status: "active")
|
||||
@plans = Plan.ordered.reject { |p| p.slug == "free" }
|
||||
@teams = @club.teams.includes(:youtube_credential).order(:name)
|
||||
end
|
||||
|
||||
def grant_comped
|
||||
|
||||
Reference in New Issue
Block a user