X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd9a72e6699f4cd4ec997c889a1acc5ff3475e2a..ebf9e1f06dd954b9b0bae549dc032820ee64581e:/app/controllers/issues_controller.rb diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 594038939..10a6dc09b 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -12,8 +12,8 @@ class IssuesController < ApplicationController @title = t ".title" @issue_types = [] - @issue_types.concat %w[Note] if current_user.moderator? - @issue_types.concat %w[DiaryEntry DiaryComment User] if current_user.administrator? + @issue_types.push("Note") if current_user.moderator? + @issue_types.push("DiaryEntry", "DiaryComment", "User") if current_user.administrator? @users = User.joins(:roles).where(:user_roles => { :role => current_user.roles.map(&:role) }).distinct @issues = Issue.visible_to(current_user)