diff options
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index e2bfa7da9..e9b5f8676 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -357,11 +357,6 @@ class UserController < ApplicationController file_name = params[:file].original_filename file_content = params[:file].read end - if file_name.nil? - flash[:error] = "Please choose a file containing your photo" - render :template => 'user/set_draft_profile_photo.rhtml' - return - end # validate it @draft_profile_photo = ProfilePhoto.new(:data => file_content, :draft => true) |