summaryrefslogtreecommitdiff
path: root/app/controllers/groups/avatars_controller.rb
blob: cc5ba5878f80cde7f087140708d720bdb4e56ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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: 302
  end
end