2021-11-25 14:07:38 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PreviewCardProviderPolicy < ApplicationPolicy
|
|
|
|
def index?
|
2022-07-05 03:41:40 +03:00
|
|
|
role.can?(:manage_taxonomies)
|
2021-11-25 14:07:38 +02:00
|
|
|
end
|
|
|
|
|
2022-02-25 01:34:14 +02:00
|
|
|
def review?
|
2022-07-05 03:41:40 +03:00
|
|
|
role.can?(:manage_taxonomies)
|
2021-11-25 14:07:38 +02:00
|
|
|
end
|
|
|
|
end
|