Skip to content
Snippets Groups Projects
Commit 42a23410 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent a5e17340
No related merge requests found
......@@ -24,6 +24,8 @@ class ApplicationController < ActionController::Base
def load_block_copy_cookie
block_id = cookies[Communication::Block::BLOCK_COPY_COOKIE]
return if block_id.nil?
@block_copied = Communication::Block.find block_id
@block_copied = Communication::Block.where(university: current_university).find block_id
rescue
# If the block doesn't exist anymore
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment