Class: Spud::Admin::DashboardController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spud/admin/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
# File 'app/controllers/spud/admin/dashboard_controller.rb', line 3

def index
	permission_set = current_user_permissions.collect{|p| p.name}
	@admin_applications = Spud::Core.admin_applications.select{|app| @current_user.super_admin || permission_set.include?(app[:name])}
end