X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/80a241f7985fec6ec853e48a25823446b59b7682..e44f856b53fcba5b44af37126579a034ef654676:/app/models/issue.rb diff --git a/app/models/issue.rb b/app/models/issue.rb index 9eb6aac4c..d13f297a9 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -93,7 +93,7 @@ class Issue < ActiveRecord::Base end def set_default_assigned_role - role = %w[Changeset Note].include?(reportable.class.name) ? "moderator" : "administrator" + role = %w[Note].include?(reportable.class.name) ? "moderator" : "administrator" self.assigned_role = role if assigned_role.blank? end end