about summary refs log tree commit diff
path: root/app/policies/settings_policy.rb
blob: 3b170f6e2377a1c9661f6c6abacd948f981dac80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class SettingsPolicy < ApplicationPolicy
  def update?
    !defanged? && admin?
  end

  def show?
    !defanged? && admin?
  end
end