2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
class Groups::AvatarsController < Groups::ApplicationController
|
2016-06-02 11:05:42 +05:30
|
|
|
before_action :authorize_admin_group!
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
skip_cross_project_access_check :destroy
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
feature_category :subgroups
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
def destroy
|
|
|
|
@group.remove_avatar!
|
|
|
|
@group.save
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
redirect_to edit_group_path(@group), status: :found
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|