2015-11-16 16:24:14 +00:00
|
|
|
class Groups::AvatarsController < Groups::ApplicationController
|
2016-03-20 20:03:53 +00:00
|
|
|
before_action :authorize_admin_group!
|
|
|
|
|
2017-12-11 14:21:06 +00:00
|
|
|
skip_cross_project_access_check :destroy
|
|
|
|
|
2014-01-27 21:34:05 +00:00
|
|
|
def destroy
|
|
|
|
@group.remove_avatar!
|
|
|
|
@group.save
|
|
|
|
|
2017-06-06 22:45:16 +00:00
|
|
|
redirect_to edit_group_path(@group), status: 302
|
2014-01-27 21:34:05 +00:00
|
|
|
end
|
|
|
|
end
|