X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..4e64291839d45a0c660fc84f11a6c4c811cf8f21:/app/models/request_token.rb diff --git a/app/models/request_token.rb b/app/models/request_token.rb index 02f168346..a1b30abb3 100644 --- a/app/models/request_token.rb +++ b/app/models/request_token.rb @@ -17,7 +17,7 @@ class RequestToken < OauthToken params = { :user => user, :client_application => client_application } # copy the permissions from the authorised request token to the access token client_application.permissions.each do |p| - params[p] = read_attribute(p) + params[p] = self[p] end access_token = AccessToken.create(params)