Add report.updated webhook (#24211)
This commit is contained in:
parent
173a268025
commit
394d1f19b1
2 changed files with 9 additions and 3 deletions
|
@ -20,6 +20,7 @@ class Webhook < ApplicationRecord
|
|||
account.created
|
||||
account.updated
|
||||
report.created
|
||||
report.updated
|
||||
status.created
|
||||
status.updated
|
||||
).freeze
|
||||
|
@ -59,7 +60,7 @@ class Webhook < ApplicationRecord
|
|||
case event
|
||||
when 'account.approved', 'account.created', 'account.updated'
|
||||
:manage_users
|
||||
when 'report.created'
|
||||
when 'report.created', 'report.updated'
|
||||
:manage_reports
|
||||
when 'status.created', 'status.updated'
|
||||
:view_devops
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue