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