debian-mirror-gitlab/app/controllers/groups/avatars_controller.rb

11 lines
225 B
Ruby
Raw Normal View History

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!
2014-09-02 18:07:02 +05:30
def destroy
@group.remove_avatar!
@group.save
2017-09-10 17:25:29 +05:30
redirect_to edit_group_path(@group), status: 302
2014-09-02 18:07:02 +05:30
end
end