diff options
Diffstat (limited to 'app/controllers/groups/avatars_controller.rb')
-rw-r--r-- | app/controllers/groups/avatars_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/groups/avatars_controller.rb b/app/controllers/groups/avatars_controller.rb index 76c87366baa..ad2c20b42db 100644 --- a/app/controllers/groups/avatars_controller.rb +++ b/app/controllers/groups/avatars_controller.rb @@ -1,4 +1,6 @@ class Groups::AvatarsController < Groups::ApplicationController + before_action :authorize_admin_group! + def destroy @group.remove_avatar! @group.save |