gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb

11 lines
225 B
Ruby
Raw Normal View History

class Groups::AvatarsController < Groups::ApplicationController
2016-03-20 20:03:53 +00:00
before_action :authorize_admin_group!
2014-01-27 21:34:05 +00:00
def destroy
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group), status: 302
2014-01-27 21:34:05 +00:00
end
end