X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/87d38efbb072a99bea2bbeaac11d6fa37dd0d9ee..7b89dc63496de0b6131a93c57d283ebb4490804b:/app/controllers/application_controller.rb?ds=sidebyside diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e57638767..44307d482 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -366,6 +366,11 @@ private return [user, pass] end + # used by oauth plugin to get the current user + def current_user + @user + end + # used by oauth plugin to set the current user def current_user=(user) @user=user