Check permissions checkDigest() & swapFileOrder()

You need upload:read to checkDigest, and upload:write to swap the file order around