]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/id.html.erb
Merge branch 'authz' of https://github.com/rubyforgood/openstreetmap-website into...
[rails.git] / app / views / site / id.html.erb
index a38a81534355d77e54684bee2f6df25eb1dce7de..c115ea59ff47d5c71596f603585535a8c66453bc 100644 (file)
@@ -10,7 +10,7 @@
 <body>
 <% data = {} -%>
 <% if defined? ID_KEY %>
-<% token = @user.access_token(ID_KEY) %>
+<% token = current_user.access_token(ID_KEY) %>
 <% data[:token] = token.token -%>
 <% data[:token_secret] = token.secret -%>
 <% data[:consumer_key] = token.client_application.key -%>