Skip to content
Snippets Groups Projects
Commit 246c2093 authored by pabois's avatar pabois
Browse files

error if no university

parent 5f5212fe
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,15 @@ class ApplicationController < ActionController::Base
include WithLocale
include WithDomain
before_action :authenticate_user!
before_action :ensure_university, :authenticate_user!
def breadcrumb
add_breadcrumb t('home'), root_path
end
private
def ensure_university
render_forbidden unless current_university
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