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:
@@ -4,6 +4,9 @@ module Api
|
||||
def authorize
|
||||
team = current_user.streamable_teams.find { |t| t.id.to_s == params[:team_id].to_s }
|
||||
raise ActiveRecord::RecordNotFound unless team
|
||||
unless team.club.owned_by?(current_user)
|
||||
return render json: { error: "Solo il titolare della società può collegare YouTube" }, status: :forbidden
|
||||
end
|
||||
|
||||
team.entitlements.assert_can_connect_youtube!
|
||||
return_app = ActiveModel::Type::Boolean.new.cast(params[:return_app])
|
||||
|
||||
Reference in New Issue
Block a user