Sha256: 3c432e6a1b3a7d8d032dfc59c6b6f2ef0f9448543603e98f72c5d488c400957e

Contents?: true

Size: 295 Bytes

Versions: 15

Compression:

Stored size: 295 Bytes

Contents

class Spud::Admin::DashboardController < Spud::Admin::ApplicationController
  
	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
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spud_core-0.8.0 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.7.5 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.7.4 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.7.2 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.7.1 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.7.0 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.6.4 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.6.2 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.5.6 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.5.5 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.5.2 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.5.1 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.5.0 app/controllers/spud/admin/dashboard_controller.rb
spud_core-0.4.0 app/controllers/spud/admin/dashboard_controller.rb
spud_admin-0.2.0 app/controllers/spud/admin/dashboard_controller.rb