Skip to content
Snippets Groups Projects
Unverified Commit f9b5352a authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

ActiveStorage check abilities

parent 8b33dc78
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,7 @@ module ActiveStorage::CheckAbilities
private
def check_abilities
# TEMP: Warning, we disable university check (TO REMOVE)
# render(file: Rails.root.join('public/403.html'), formats: [:html], status: 403, layout: false) and return if current_university.present? && @blob.university_id != current_university.id
render(file: Rails.root.join('public/403.html'), formats: [:html], status: 403, layout: false) and return if current_university.present? && @blob.university_id != current_university.id
end
def current_university
......
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