2021-04-12 20:37:14 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class FollowRecommendationPolicy < ApplicationPolicy
|
|
|
|
def show?
|
2022-07-05 10:41:40 +10:00
|
|
|
role.can?(:manage_taxonomies)
|
2021-04-12 20:37:14 +10:00
|
|
|
end
|
|
|
|
|
|
|
|
def suppress?
|
2022-07-05 10:41:40 +10:00
|
|
|
role.can?(:manage_taxonomies)
|
2021-04-12 20:37:14 +10:00
|
|
|
end
|
|
|
|
|
|
|
|
def unsuppress?
|
2022-07-05 10:41:40 +10:00
|
|
|
role.can?(:manage_taxonomies)
|
2021-04-12 20:37:14 +10:00
|
|
|
end
|
|
|
|
end
|