policy_actor.rb 513 字节
Newer Older
1 2 3 4 5
# frozen_string_literal: true

# Include this module if we want to pass something else than the user to
# check policies. This defines several methods which the policy checker
# would call and check.
6
module PolicyActor
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
  extend ActiveSupport::Concern

  def blocked?
    false
  end

  def admin?
    false
  end

  def external?
    false
  end

  def internal?
    false
  end

  def access_locked?
    false
  end

  def required_terms_not_accepted?
    false
  end

  def can_create_group
    false
  end
end