mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
20 lines
261 B
Ruby
20 lines
261 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class PolicyBase
|
||
|
|
attr_reader :context
|
||
|
|
|
||
|
|
delegate :guardian, to: :context
|
||
|
|
|
||
|
|
def initialize(context)
|
||
|
|
@context = context
|
||
|
|
end
|
||
|
|
|
||
|
|
def call
|
||
|
|
raise "Not implemented"
|
||
|
|
end
|
||
|
|
|
||
|
|
def reason
|
||
|
|
raise "Not implemented"
|
||
|
|
end
|
||
|
|
end
|