Browse Source

location controller

pull/704/head
JG 3 years ago
parent
commit
7a32099e26
  1. 14
      app/controllers/locations_controller.rb

14
app/controllers/locations_controller.rb

@ -0,0 +1,14 @@
class LocationsController < ApplicationController
before_action :authenticate_user!
before_action :authenticate_scope!
def new
@location = Location.new
end
private
def authenticate_scope!
head :unauthorized and return unless current_user.data_coordinator? || current_user.support?
end
end
Loading…
Cancel
Save