Adds a separate admin namespace and base controller, with authorization by looking up the admin property in the user's LDAP account.
7 lines
127 B
Ruby
7 lines
127 B
Ruby
class Admin::BaseController < ApplicationController
|
|
|
|
before_action :authenticate_user!
|
|
before_action :authorize_admin
|
|
|
|
end
|