Aggiunge modulo Replay, Garage dev e YouTube a livello società.
Pipeline registrazione/upload con storage S3, archivio web e app, proxy replay per il browser, OAuth YouTube sulla pagina club (Premium Full) e footer legale. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,7 +5,6 @@ class Team < ApplicationRecord
|
||||
has_many :user_teams, dependent: :destroy
|
||||
has_many :users, through: :user_teams
|
||||
has_many :matches, dependent: :destroy
|
||||
has_one :youtube_credential, dependent: :destroy
|
||||
has_many :recordings, dependent: :destroy
|
||||
has_many :team_invitations, dependent: :destroy
|
||||
has_many :roster_members, class_name: "TeamRosterMember", dependent: :destroy
|
||||
@@ -23,6 +22,11 @@ class Team < ApplicationRecord
|
||||
Teams::Entitlements.new(self)
|
||||
end
|
||||
|
||||
# Canale YouTube OAuth è unico per tutta la società (Premium Full).
|
||||
def youtube_credential
|
||||
club&.youtube_credential
|
||||
end
|
||||
|
||||
def owner
|
||||
club&.owner
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user