diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 13:11:11 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 13:11:11 +0200 |
commit | 5790684d1f81ca9fa63a10f3fec6339ef0092627 (patch) | |
tree | a9a8b3b546c3d450a1aed9697353e7cd88c1fe76 /lib/gitlab/lfs_token.rb | |
parent | b51ededc5fef05f94a632aa7651b5a1f7395bd4e (diff) | |
download | gitlab-ce-5790684d1f81ca9fa63a10f3fec6339ef0092627.tar.gz |
Support pushing via SSH
Diffstat (limited to 'lib/gitlab/lfs_token.rb')
-rw-r--r-- | lib/gitlab/lfs_token.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/lfs_token.rb b/lib/gitlab/lfs_token.rb index f492754b1c8..d089a2f9b0b 100644 --- a/lib/gitlab/lfs_token.rb +++ b/lib/gitlab/lfs_token.rb @@ -33,6 +33,10 @@ module Gitlab end end + def user? + actor.is_a?(User) + end + def type actor.is_a?(User) ? :lfs_token : :lfs_deploy_token end |