1
0
Fork 0
dokkan-data-rails/app/policies/admin_dashboard_policy.rb

6 lines
122 B
Ruby
Raw Normal View History

2015-10-09 08:17:29 -04:00
class AdminDashboardPolicy < Struct.new(:user, :admin_dashbard)
def index?
user.admin? || user.moderator?
end
end