gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb
2018-07-09 21:13:08 +08:00

12 lines
272 B
Ruby

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: :found
end
end