This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2017-11-11 14:23:33 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class SettingsPolicy < ApplicationPolicy
|
|
|
|
def update?
|
2022-07-04 20:41:40 -04:00
|
|
|
role.can?(:manage_settings)
|
2017-11-11 14:23:33 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def show?
|
2022-07-04 20:41:40 -04:00
|
|
|
role.can?(:manage_settings)
|
2017-11-11 14:23:33 -05:00
|
|
|
end
|
2020-03-08 11:00:24 -04:00
|
|
|
|
|
|
|
def destroy?
|
2022-07-04 20:41:40 -04:00
|
|
|
role.can?(:manage_settings)
|
2020-03-08 11:00:24 -04:00
|
|
|
end
|
2017-11-11 14:23:33 -05:00
|
|
|
end
|