debian-mirror-gitlab/app/controllers/groups/avatars_controller.rb
2017-09-10 17:25:29 +05:30

10 lines
225 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), status: 302
end
end