X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e6af088dda8e85f53b11ffbaddb11edf08e4a046..bd07221de54a30ebcb83d9b1f4ebb95dd2f3245b:/app/controllers/message_controller.rb diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index e9ad1968c..26102cc63 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -1,6 +1,6 @@ class MessageController < ApplicationController layout 'site' - # before_filter :authorize + before_filter :authorize_web before_filter :require_user @@ -14,7 +14,6 @@ class MessageController < ApplicationController message.body = body message.title = title message.to_user_id = params[:user_id] - message.from_display_name = to_user.display_name message.from_user_id = @user.id message.sent_on = Time.now