app/controllers/caboose/roles_controller.rb in caboose-cms-0.4.42 vs app/controllers/caboose/roles_controller.rb in caboose-cms-0.4.43
- old
+ new
@@ -1,10 +1,10 @@
module Caboose
class RolesController < ApplicationController
layout 'caboose/admin'
def before_action
- @page = Page.page_with_uri('/admin')
+ @page = Page.page_with_uri(request.host_with_port, '/admin')
end
# GET /admin/roles
def index
return unless user_is_allowed('roles', 'view')