Revert "Fix authentication checking for PUT/POST"

This reverts commit a3b068ed0918363908eab96c8f416a22cff677ac.