avatars_controller.rb 269 Bytes
Newer Older
1
class Groups::AvatarsController < Groups::ApplicationController
2 3
  before_action :authorize_admin_group!

4 5
  skip_cross_project_access_check :destroy

Steven Thonus's avatar
Steven Thonus committed
6 7 8 9
  def destroy
    @group.remove_avatar!
    @group.save

10
    redirect_to edit_group_path(@group), status: 302
Steven Thonus's avatar
Steven Thonus committed
11 12
  end
end