Skip to content

Commit 80bc009

Browse files
committed
Reauthenticate in videos#show
1 parent f8314df commit 80bc009

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/controllers/videos_controller.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ def show
4141
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
4242

4343
respond_to do |format|
44-
format.html { render }
44+
format.html do
45+
# HACK: Force reauthentication since the page does XHR
46+
sss.force_authenticate() if sss
47+
render
48+
end
4549
format.json { render json: @manifest }
4650
end
4751
end

0 commit comments

Comments
 (0)