From e1ce75ec49bbf1b2416755857b47cfc90b6331d4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Apr 2012 18:40:05 +0100 Subject: [PATCH] Mark some extra methods as needing write access to the database --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 1bcd6b800..c0f440b10 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -8,7 +8,7 @@ class UserController < ApplicationController before_filter :set_locale, :except => [:api_details, :api_gpx_files] before_filter :require_user, :only => [:account, :go_public, :make_friend, :remove_friend] before_filter :check_database_readable, :except => [:login, :api_details, :api_gpx_files] - before_filter :check_database_writable, :only => [:new, :account, :go_public, :make_friend, :remove_friend] + before_filter :check_database_writable, :only => [:new, :account, :confirm, :confirm_email, :go_public, :make_friend, :remove_friend] before_filter :check_api_readable, :only => [:api_details, :api_gpx_files] before_filter :require_allow_read_prefs, :only => [:api_details] before_filter :require_allow_read_gpx, :only => [:api_gpx_files] -- 2.43.2