dashboard_policy.rb 127 B

1234567
  1. # frozen_string_literal: true
  2. class DashboardPolicy < ApplicationPolicy
  3. def index?
  4. role.can?(:view_dashboard)
  5. end
  6. end