[35328] Allow more default overrides (#9262)

pull/9263/head
Oliver Günther 4 years ago committed by GitHub
parent 064a05f6db
commit 1ac2de19ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/models/mail_handler.rb

@ -125,6 +125,10 @@ class MailHandler < ActionMailer::Base
options[:allow_override] << :project unless options[:issue].has_key?(:project)
# Status overridable by default
options[:allow_override] << :status unless options[:issue].has_key?(:status)
# Version overridable by default
options[:allow_override] << :version unless options[:issue].has_key?(:version)
# Type overridable by default
options[:allow_override] << :type unless options[:issue].has_key?(:type)
# Priority overridable by default
options[:allow_override] << :priority unless options[:issue].has_key?(:priority)
options[:no_permission_check] = options[:no_permission_check].to_s == '1'

Loading…
Cancel
Save