Integrate shared scoreboard links in contests
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-07-30 16:10:56 +02:00
parent 949f2de4b6
commit c221563618
5 changed files with 19 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ class ContestsController < ApplicationController
end
def scoreboard
if active_page("/public/event")
if active_page("/public/event/") == "active"
@event = Event.find_by(slug: params[:id])
unless @event && @event.shared_scoreboard && !@event.contests.where(public: true).empty?
skip_authorization