Mark some extra methods as needing write access to the database
This commit is contained in:
parent
6d99be3efc
commit
e1ce75ec49
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue