Sha256: a5bb30264000d806146c67c0994e3c5291d0c5913c192d9e55fa4a7f4338f5ad

Contents?: true

Size: 482 Bytes

Versions: 25

Compression:

Stored size: 482 Bytes

Contents

module Caboose
  class AdminController < ApplicationController
      
    # @route GET /admin
    def index      
      return if !user_is_allowed('admin', 'view')
      #if logged_in?
      #  redirect_to '/admin/pages'
      #  return
      #end
      @return_url = params[:return_url].nil? ? '/admin/pages' : params[:return_url]
    end
    
    # @route GET /station
    def station
      @user = logged_in_user
      render :layout => 'caboose/station'
    end
    
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
caboose-cms-0.7.85 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.84 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.83 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.82 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.81 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.80 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.79 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.78 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.77 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.76 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.75 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.74 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.73 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.72 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.71 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.70 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.69 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.68 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.67 app/controllers/caboose/admin_controller.rb
caboose-cms-0.7.66 app/controllers/caboose/admin_controller.rb