From 3c1bb3432b0b8448262ec9a9a3468641c82db5c1 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 19 Sep 2016 16:34:32 +0200 Subject: Revert "Revert all changes introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043" This reverts commit 6d43c95b7011ec7ec4600e00bdc8df76bb39813c. --- lib/gitlab/auth/result.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/gitlab/auth') diff --git a/lib/gitlab/auth/result.rb b/lib/gitlab/auth/result.rb index bf625649cbf..e4786b12676 100644 --- a/lib/gitlab/auth/result.rb +++ b/lib/gitlab/auth/result.rb @@ -5,6 +5,10 @@ module Gitlab type == :ci end + def lfs_deploy_token? + type == :lfs_deploy_token + end + def success? actor.present? || type == :ci end -- cgit v1.2.3