Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-09-27 16:56:48 +0300
committerDouwe Maan <douwe@selenight.nl>2017-10-12 12:13:37 +0300
commit025c6eeaa1e02dce31cb836c39ee4a5f312f202f (patch)
tree14c6de5fb8ab55694413a22cc0ba668ae3773f9d /app
parentad5b96952e9eb90dc72d640f01aca01b5d0a2a12 (diff)
Move all API authentication code to APIGuard
Diffstat (limited to 'app')
-rw-r--r--app/models/oauth_access_token.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/oauth_access_token.rb b/app/models/oauth_access_token.rb
index b85f5dbaf2e..f89e60ad9f4 100644
--- a/app/models/oauth_access_token.rb
+++ b/app/models/oauth_access_token.rb
@@ -1,4 +1,6 @@
class OauthAccessToken < Doorkeeper::AccessToken
belongs_to :resource_owner, class_name: 'User'
belongs_to :application, class_name: 'Doorkeeper::Application'
+
+ alias_method :user, :resource_owner
end