gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb
2016-03-20 21:04:07 +01:00

10 lines
212 B
Ruby

class Groups::AvatarsController < Groups::ApplicationController
before_action :authorize_admin_group!
def destroy
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end