Files
gitlabhq/app/controllers/groups/application_controller.rb
T

15 lines
270 B
Ruby

class Groups::ApplicationController < ApplicationController
private
def authorize_admin_group!
unless can?(current_user, :manage_group, group)
return render_404
end
end
def group
@group ||= Group.find_by(path: params[:group_id])
end
end