follow_recommendation_policy.rb 256 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class FollowRecommendationPolicy < ApplicationPolicy
  3. def show?
  4. role.can?(:manage_taxonomies)
  5. end
  6. def suppress?
  7. role.can?(:manage_taxonomies)
  8. end
  9. def unsuppress?
  10. role.can?(:manage_taxonomies)
  11. end
  12. end