summaryrefslogtreecommitdiff
path: root/app/models/key.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:32:34 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:32:34 +0200
commitd431e4339269041784986da40a0e0879baaf96a9 (patch)
tree1910d14e460d52445d8ae7a6a1906f4a9eec23cb /app/models/key.rb
parent00a1f5bc2cc2c98bda3818e770eaae95e664480a (diff)
downloadgitlab-ce-d431e4339269041784986da40a0e0879baaf96a9.tar.gz
Fix few bugs and tests after refactoring ownership logic
Diffstat (limited to 'app/models/key.rb')
-rw-r--r--app/models/key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/key.rb b/app/models/key.rb
index 5dac1c1c9fd..2bf50f56565 100644
--- a/app/models/key.rb
+++ b/app/models/key.rb
@@ -73,7 +73,7 @@ class Key < ActiveRecord::Base
if is_deploy_key
[project]
else
- user.projects
+ user.authorized_projects
end
end