Sha256: 9978028990e05f596066de525c7c8402303a584742bdb08df755e0a854ee5d84

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

module Caboose
  class AdminController < ApplicationController
      
    # GET /admin
    def index
      return if !user_is_allowed('admin', 'view')
      
      @mods = [
        { 'href' => '/admin/users'        , 'text' => 'Users' },
        { 'href' => '/admin/roles'        , 'text' => 'Roles' },
        { 'href' => '/admin/permissions'  , 'text' => 'Permissions' }
      ]
      @mods = Caboose.plugin_hook('admin_nav', @mods)
      
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caboose-cms-0.0.5 app/controllers/caboose/admin_controller.rb
caboose-cms-0.0.4 app/controllers/caboose/admin_controller.rb
caboose-cms-0.0.3 app/controllers/caboose/admin_controller.rb
caboose-cms-0.0.2 app/controllers/caboose/admin_controller.rb