summaryrefslogtreecommitdiff
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-06-22 10:50:19 -0300
committerFelipe Artur <felipefac@gmail.com>2016-06-29 11:04:18 -0300
commit36d48120f66d52dcc8697893ca1ab85322ba7c8b (patch)
tree8c66cdb03c4429bf326711d8bd6956fbf45252b7 /app/controllers/groups_controller.rb
parent2674b548601b279ada46d4b218a9def6fd5b9f6d (diff)
parent92e183542fe0e13930220ba3bbf67b9197cfc026 (diff)
downloadgitlab-ce-36d48120f66d52dcc8697893ca1ab85322ba7c8b.tar.gz
merge master into issue_3359_3
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index f65f9da3f9e..a04bf7df722 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -74,6 +74,10 @@ class GroupsController < Groups::ApplicationController
def edit
end
+ def projects
+ @projects = @group.projects.page(params[:page])
+ end
+
def update
if Groups::UpdateService.new(@group, current_user, group_params).execute
redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated."
@@ -100,10 +104,6 @@ class GroupsController < Groups::ApplicationController
@shared_projects = GroupProjectsFinder.new(group, only_shared: true).execute(current_user)
end
- def projects
- @projects = @group.projects.page(params[:page])
- end
-
def authorize_create_group!
unless can?(current_user, :create_group, nil)
return render_404