Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

15 lines
351 B

class LocationsController < ApplicationController
before_action :authenticate_user!
before_action :authenticate_scope!
def new
@scheme = Scheme.find(params[:id])
@location = Location.new
end
private
def authenticate_scope!
head :unauthorized and return unless current_user.data_coordinator? || current_user.support?
end
end