summaryrefslogtreecommitdiff
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:00:00 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:00:00 +0200
commit00a1f5bc2cc2c98bda3818e770eaae95e664480a (patch)
tree957597fc0a568cbf92dd1d4377b771c39a671300 /app/controllers/groups_controller.rb
parent91995909d9ef6fc5540c7577987ed2244ac7862a (diff)
downloadgitlab-ce-00a1f5bc2cc2c98bda3818e770eaae95e664480a.tar.gz
Project has now correct owner and creator. Increased test coverage
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 6646b10ca48..981adf061f0 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -70,7 +70,7 @@ class GroupsController < ApplicationController
end
def projects
- @projects ||= group.projects.authorized_for(current_user).sorted_by_activity
+ @projects ||= current_user.authorized_projects.where(namespace_id: group.id).sorted_by_activity
end
def project_ids