def require_delete_permission
      unless @folder.is_root? || boxroom_current_user.can_delete(@folder)
        redirect_to @folder.parent, :alert => t(:no_permissions_for_this_type, :method => t(:delete), :type => t(:this_folder))
      else
        require_delete_permissions_for(@folder.children)
      end
    end
def require_delete_permission
      unless @folder.is_root? || boxroom_current_user.can_delete(@folder)
        redirect_to @folder.parent, :alert => t(:no_permissions_for_this_type, :method => t(:delete), :type => t(:this_folder))
      else
        require_delete_permissions_for(@folder.children)
      end
    end
Overrides require_delete_permission in ApplicationController