mirror of
https://github.com/discourse/discourse.git
synced 2024-12-28 03:23:49 +08:00
11 lines
403 B
Ruby
11 lines
403 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::PM_CREATED) do
|
||
|
field :restricted_user, component: :user
|
||
|
field :restricted_group, component: :group
|
||
|
field :ignore_staff, component: :boolean
|
||
|
field :ignore_automated, component: :boolean
|
||
|
field :ignore_group_members, component: :boolean
|
||
|
field :valid_trust_levels, component: :"trust-levels"
|
||
|
end
|