BigW Consortium Gitlab

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

Steven Thonus committed
4 5 6 7 8 9 10
  def destroy
    @group.remove_avatar!
    @group.save

    redirect_to edit_group_path(@group)
  end
end