2017-11-11 19:23:33 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class SettingsPolicy < ApplicationPolicy
|
|
|
|
def update?
|
2022-07-05 01:41:40 +01:00
|
|
|
role.can?(:manage_settings)
|
2017-11-11 19:23:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def show?
|
2022-07-05 01:41:40 +01:00
|
|
|
role.can?(:manage_settings)
|
2017-11-11 19:23:33 +00:00
|
|
|
end
|
2020-03-08 15:00:24 +00:00
|
|
|
|
|
|
|
def destroy?
|
2022-07-05 01:41:40 +01:00
|
|
|
role.can?(:manage_settings)
|
2020-03-08 15:00:24 +00:00
|
|
|
end
|
2017-11-11 19:23:33 +00:00
|
|
|
end
|