HasWritePermission fixed.