You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
314 B
13 lines
314 B
class ApplicationController < ActionController::Base
|
|
protect_from_forgery with: :exception, prepend: true
|
|
|
|
|
|
def verify_admin
|
|
return true #if current_user.admin?(@school)
|
|
|
|
redirect_to root_path, notice: 'You must be logged in as an admin of that school to access that page.'
|
|
return false
|
|
end
|
|
|
|
end
|