summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index b4a3ffc..373fe84 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -87,12 +87,7 @@ ls -la
end
def from_gitlab(user, scope = :owned, options)
- opts = if user.access_token
- { access_token: user.access_token }
- else
- { private_token: user.private_token }
- end
-
+ opts = user.authenticate_options
opts.merge! options
projects = Network.new.projects(opts.compact, scope)