18 lines
255 B
Ruby
18 lines
255 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EmailSubscriptionPolicy < ApplicationPolicy
|
|
def index?
|
|
role.can?(:manage_settings)
|
|
end
|
|
|
|
alias enable? index?
|
|
|
|
alias disable? index?
|
|
|
|
alias purge? index?
|
|
|
|
alias show? index?
|
|
|
|
alias destroy? index?
|
|
end
|