Skip to content
Snippets Groups Projects
Commit c79c441c authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Re-add code that didn't need to be removed

parent 76d6b1c0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,12 +2,12 @@ class GroupsController < Groups::ApplicationController
include IssuesAction
include MergeRequestsAction
 
skip_before_action :authenticate_user!, only: [:show, :activity, :issues, :merge_requests]
skip_before_action :authenticate_user!, only: [:index, :show, :activity, :issues, :merge_requests]
respond_to :html
before_action :find_group, except: [:new, :create]
before_action :find_group, except: [:index, :new, :create]
 
# Authorize
before_action :authorize_read_group!, except: [:show, :activity, :new, :create, :autocomplete]
before_action :authorize_read_group!, except: [:index, :show, :activity, :new, :create, :autocomplete]
before_action :authorize_admin_group!, only: [:edit, :update, :destroy]
before_action :authorize_create_group!, only: [:new, :create]
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment