Welcome to mirror list, hosted at ThFree Co, Russian Federation.

avatars_controller.rb « groups « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e4dc2bb6e97f0d532b39132eb8b5e076550c4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class Groups::AvatarsController < Groups::ApplicationController
  before_action :authorize_admin_group!

  skip_cross_project_access_check :destroy

  def destroy
    @group.remove_avatar!
    @group.save

    redirect_to edit_group_path(@group), status: :found
  end
end