2018-12-06 08:36:11 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class TagPolicy < ApplicationPolicy
|
|
|
|
def index?
|
2022-07-04 17:41:40 -07:00
|
|
|
role.can?(:manage_taxonomies)
|
2018-12-06 08:36:11 -08:00
|
|
|
end
|
|
|
|
|
2019-08-05 10:54:29 -07:00
|
|
|
def show?
|
2022-07-04 17:41:40 -07:00
|
|
|
role.can?(:manage_taxonomies)
|
2018-12-06 08:36:11 -08:00
|
|
|
end
|
|
|
|
|
2019-08-05 10:54:29 -07:00
|
|
|
def update?
|
2022-07-04 17:41:40 -07:00
|
|
|
role.can?(:manage_taxonomies)
|
2018-12-06 08:36:11 -08:00
|
|
|
end
|
2022-02-24 15:34:14 -08:00
|
|
|
|
|
|
|
def review?
|
2022-07-04 17:41:40 -07:00
|
|
|
role.can?(:manage_taxonomies)
|
2022-02-24 15:34:14 -08:00
|
|
|
end
|
2018-12-06 08:36:11 -08:00
|
|
|
end
|