akkounts/app/controllers/admin/base_controller.rb
Sebastian Kippe f0312cb8e7
Authorize access to admin panel, etc.
Adds a separate admin namespace and base controller, with authorization
by looking up the admin property in the user's LDAP account.
2020-11-18 00:22:44 +01:00

7 lines
127 B
Ruby

class Admin::BaseController < ApplicationController
before_action :authenticate_user!
before_action :authorize_admin
end