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

5 lines
122 B
Ruby

class AdminDashboardPolicy < Struct.new(:user, :admin_dashbard)
def index?
user.admin? || user.moderator?
end
end