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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
334 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Groups::AvatarsController < Groups::ApplicationController
2016-03-20 20:03:53 +00:00
before_action :authorize_admin_group!
skip_cross_project_access_check :destroy
feature_category :subgroups
2014-01-27 21:34:05 +00:00
def destroy
@group.remove_avatar!
@group.save
2018-07-02 10:43:06 +00:00
redirect_to edit_group_path(@group), status: :found
2014-01-27 21:34:05 +00:00
end
end